diff options
author | Frederick Muriuki Muriithi | 2024-07-29 14:56:15 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-07-31 09:30:28 -0500 |
commit | 50ee89f1d3b6daafa4a21d6640afd41a0e41aab1 (patch) | |
tree | 881bff5dae3af6f1df5fe5ad4383817908e9b364 /gn_auth/auth/authentication/oauth2/models | |
parent | 5338f5cae369a34e9a391de58cc73247adf15373 (diff) | |
download | gn-auth-50ee89f1d3b6daafa4a21d6640afd41a0e41aab1.tar.gz |
Update all endpoints to use the `client_secret_post` auth method.
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/models')
-rw-r--r-- | gn_auth/auth/authentication/oauth2/models/oauth2client.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gn_auth/auth/authentication/oauth2/models/oauth2client.py b/gn_auth/auth/authentication/oauth2/models/oauth2client.py index 1413722..8fac648 100644 --- a/gn_auth/auth/authentication/oauth2/models/oauth2client.py +++ b/gn_auth/auth/authentication/oauth2/models/oauth2client.py @@ -92,12 +92,9 @@ class OAuth2Client(ClientMixin): * client_secret_post: Client uses the HTTP POST parameters * client_secret_basic: Client uses HTTP Basic """ - if endpoint == "token": + if endpoint in ("token", "revoke", "introspection"): return (method in self.token_endpoint_auth_method and method == "client_secret_post") - if endpoint in ("introspection", "revoke"): - return (method in self.token_endpoint_auth_method - and method == "client_secret_basic") return False @cached_property |