-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add jwks method * Add logout method * ran black * I'm getting mixed messages here black * Ran black again, this time with the same version as CI
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -794,6 +794,21 @@ def test_authenticate_with_refresh_token( | |
assert request["json"]["client_secret"] == "sk_test" | ||
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) | ||
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" % ( | ||
workos.base_api_url, | ||
"session_123", | ||
) | ||
result = self.user_management.get_logout_url("session_123") | ||
|
||
assert expected == result | ||
|
||
def test_send_password_reset_email(self, capture_and_mock_request): | ||
email = "[email protected]" | ||
password_reset_url = "https://foo-corp.com/reset-password" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters