Skip to content

Commit 07ee0b9

Browse files
authored
Fig bug with JWKs and logout URL (#270)
* Fig bug with JWKs and logout URL * Update version
1 parent 45b6a63 commit 07ee0b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/test_user_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,13 +865,13 @@ def test_authenticate_with_refresh_token(
865865
assert request["json"]["grant_type"] == "refresh_token"
866866

867867
def test_get_jwks_url(self):
868-
expected = "%s/sso/jwks/%s" % (workos.base_api_url, workos.client_id)
868+
expected = "%ssso/jwks/%s" % (workos.base_api_url, workos.client_id)
869869
result = self.user_management.get_jwks_url()
870870

871871
assert expected == result
872872

873873
def test_get_logout_url(self):
874-
expected = "%s/user_management/sessions/logout?session_id=%s" % (
874+
expected = "%suser_management/sessions/logout?session_id=%s" % (
875875
workos.base_api_url,
876876
"session_123",
877877
)

workos/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
__package_url__ = "https://github.com/workos-inc/workos-python"
1414

15-
__version__ = "4.7.0"
15+
__version__ = "4.7.1"
1616

1717
__author__ = "WorkOS"
1818

workos/user_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ def get_jwks_url(self):
817817
(str): The public JWKS URL.
818818
"""
819819

820-
return "%s/sso/jwks/%s" % (workos.base_api_url, workos.client_id)
820+
return "%ssso/jwks/%s" % (workos.base_api_url, workos.client_id)
821821

822822
def get_logout_url(self, session_id):
823823
"""Get the URL for ending the session and redirecting the user
@@ -829,7 +829,7 @@ def get_logout_url(self, session_id):
829829
(str): URL to redirect the user to to end the session.
830830
"""
831831

832-
return "%s/user_management/sessions/logout?session_id=%s" % (
832+
return "%suser_management/sessions/logout?session_id=%s" % (
833833
workos.base_api_url,
834834
session_id,
835835
)

0 commit comments

Comments
 (0)