Skip to content

Commit 1f6d040

Browse files
authored
Fix bug with URL parsing (#233)
* Fix bug with URL parsing * Bump version
1 parent 2bdb998 commit 1f6d040

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/UserManagement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ public function getJwksUrl(string $clientId)
10821082

10831083
$baseUrl = WorkOS::getApiBaseUrl();
10841084

1085-
return "{$baseUrl}/sso/jwks/{$clientId}";
1085+
return "{$baseUrl}sso/jwks/{$clientId}";
10861086
}
10871087

10881088
/**
@@ -1100,6 +1100,6 @@ public function getLogoutUrl(string $sessionId)
11001100

11011101
$baseUrl = WorkOS::getApiBaseUrl();
11021102

1103-
return "{$baseUrl}/user_management/sessions/logout?session_id={$sessionId}";
1103+
return "{$baseUrl}user_management/sessions/logout?session_id={$sessionId}";
11041104
}
11051105
}

lib/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
final class Version
66
{
77
public const SDK_IDENTIFIER = "WorkOS PHP";
8-
public const SDK_VERSION = '4.8.0';
8+
public const SDK_VERSION = '4.8.1';
99
}

tests/WorkOS/UserManagementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ public function testGetJwksUrl()
10881088
$result = $this->userManagement->getJwksUrl($clientId);
10891089

10901090
$baseUrl = WorkOS::getApiBaseUrl();
1091-
$expected = "{$baseUrl}/sso/jwks/{$clientId}";
1091+
$expected = "{$baseUrl}sso/jwks/{$clientId}";
10921092

10931093
$this->assertSame($result, $expected);
10941094
}
@@ -1111,7 +1111,7 @@ public function testGetLogoutUrl()
11111111
$result = $this->userManagement->getLogoutUrl($sessionId);
11121112

11131113
$baseUrl = WorkOS::getApiBaseUrl();
1114-
$expected = "{$baseUrl}/user_management/sessions/logout?session_id={$sessionId}";
1114+
$expected = "{$baseUrl}user_management/sessions/logout?session_id={$sessionId}";
11151115

11161116
$this->assertSame($result, $expected);
11171117
}

0 commit comments

Comments
 (0)