Skip to content

Commit

Permalink
Fig bug with JWKs and logout URL (#270)
Browse files Browse the repository at this point in the history
* Fig bug with JWKs and logout URL

* Update version
  • Loading branch information
PaulAsjes authored May 24, 2024
1 parent 45b6a63 commit 07ee0b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/test_user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,13 +865,13 @@ def test_authenticate_with_refresh_token(
assert request["json"]["grant_type"] == "refresh_token"

def test_get_jwks_url(self):
expected = "%s/sso/jwks/%s" % (workos.base_api_url, workos.client_id)
expected = "%ssso/jwks/%s" % (workos.base_api_url, workos.client_id)
result = self.user_management.get_jwks_url()

assert expected == result

def test_get_logout_url(self):
expected = "%s/user_management/sessions/logout?session_id=%s" % (
expected = "%suser_management/sessions/logout?session_id=%s" % (
workos.base_api_url,
"session_123",
)
Expand Down
2 changes: 1 addition & 1 deletion workos/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

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

__version__ = "4.7.0"
__version__ = "4.7.1"

__author__ = "WorkOS"

Expand Down
4 changes: 2 additions & 2 deletions workos/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def get_jwks_url(self):
(str): The public JWKS URL.
"""

return "%s/sso/jwks/%s" % (workos.base_api_url, workos.client_id)
return "%ssso/jwks/%s" % (workos.base_api_url, workos.client_id)

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

return "%s/user_management/sessions/logout?session_id=%s" % (
return "%suser_management/sessions/logout?session_id=%s" % (
workos.base_api_url,
session_id,
)
Expand Down

0 comments on commit 07ee0b9

Please sign in to comment.