-
Notifications
You must be signed in to change notification settings - Fork 18
Use token-endpoint instead of issuer for oauth2 authorization #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We have an issue tracking this here: openfga/sdk-generator#238 If the plan described there is appropriate for you, let us know so that we can update the issue here |
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 Additionally, the reliance on |
This ticket has been done in #137 and can be closed |
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: