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
Some IdPs do not use /oauth/token as a suffix for an oauth2 (not oauth!) token exchange.
Entra-id for example uses /oauth2/v2.0/token even though the old /oauth/token endpoint is still supported for backwards compatibility.
We currently cannot specify these endpoint as the suffix is hard coded:
Use either a /.well-known/openid-configuration to determine the token endpoint, or, maybe easier, allow users to specify the token endpoint directly (without suffixing it in the code snippet above).
Alternatives and current workarounds
Switch IdP - bad idea :)
References
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
The only way this can be properly solved is to use the well known endpoint of the IDP in question, to correctly discover endpoints for the issuer and token_endpoint, etc. The current implementation doesn't work for Microsoft Entra ID, nor Amazon Cognito for example, for different reasons.
Additionally, the reliance on audience for OIDC client credentials auth doesn't work for Amazon Cognito (as far as I can tell) as it doesn't appear to support audience and there is no aud claim for it in an access token.
Checklist
Describe the problem you'd like to have solved
Some IdPs do not use /oauth/token as a suffix for an
oauth2
(not oauth!) token exchange.Entra-id for example uses
/oauth2/v2.0/token
even though the old /oauth/token endpoint is still supported for backwards compatibility.We currently cannot specify these endpoint as the suffix is hard coded:
python-sdk/openfga_sdk/oauth2.py
Line 73 in 41d5c1b
Describe the ideal solution
Use either a /.well-known/openid-configuration to determine the token endpoint, or, maybe easier, allow users to specify the token endpoint directly (without suffixing it in the code snippet above).
Alternatives and current workarounds
Switch IdP - bad idea :)
References
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: