You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using OpenID, if .well-known/openid-configuration -> token_endpoint_auth_methods_supported has an unsupported authentication method in the first place, the BaseOAuth2.__init__ raises an error httpx_oauth.oauth2.NotSupportedAuthMethodError: Auth method private_key_jwt is not supported.
This is due to OpenID.__init__ taking the first, without checking, if there are supported ones in the list.
The text was updated successfully, but these errors were encountered:
Good catch, that's indeed a problem. We should take care of looking for client_secret_basic or client_secret_post in the list before raising NotSupportedAuthMethodError.
PR welcome!
bvolkmer
added a commit
to bvolkmer/httpx-oauth
that referenced
this issue
Aug 19, 2024
When using OpenID, if
.well-known/openid-configuration -> token_endpoint_auth_methods_supported
has an unsupported authentication method in the first place, theBaseOAuth2.__init__
raises an errorhttpx_oauth.oauth2.NotSupportedAuthMethodError: Auth method private_key_jwt is not supported.
This is due to
OpenID.__init__
taking the first, without checking, if there are supported ones in the list.The text was updated successfully, but these errors were encountered: