[All SDKs] OAuth token endpoint should be configurable and/or support oidc discovery #238
Open
2 of 5 tasks
Labels
dotnet-sdk
Affects the C#/DotNet SDK
enhancement
New feature or request
go-sdk
Affects the Go SDK
good first issue
Good for newcomers
hacktoberfest
java-sdk
Affects the Java/Kotlin SDK
js-sdk
Affects the JavaScript SDK
python-sdk
Affects the Python SDK
Description
For clients using OAuth2 credentials, the token endpoint is currently hardcoded in all SDKs (with
/oauth/token
value).Could it be possible to make it configurable? Or even better support oidc discovery?
I'm willing to contribute if that's something you would be interested in :)
Steps to take
Change the
apiTokenIssuer
field in the configuration to accept a full URL.So:
ApiTokenIssuer
issuer.fga.example
https://issuer.fga.example/oauth/token
https://issuer.fga.example
https://issuer.fga.example/oauth/token
https://issuer.fga.example:8080
https://issuer.fga.example:8080/oauth/token
issuer.fga.example/some_endpoint
https://issuer.fga.example/some_endpoint
https://issuer.fga.example/some_endpoint
https://issuer.fga.example/some_endpoint
https://issuer.fga.example:8080/some_endpoint
https://issuer.fga.example:8080/some_endpoint
Of course, we'll need to do some of the validations to ensure e.g. users are passing fields with
https
orhttp
(and not e.g. ftp) and that the full url is validRelated Issues
SDKs to be updated
The text was updated successfully, but these errors were encountered: