- Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest
Description
Checklist
- I agree to the terms within the OpenFGA Code of Conduct.
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
token_url = f"https://{configuration.api_issuer}/oauth/token" |
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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest
Type
Projects
Status
Done