openfga/sdk-generator

SDKs should get the token exchange endpoint from the issuer's configuration

rhamzeh opened this issue · 2 comments

Originally reported by @stefanmilivojevic91 for the .NET SDK

Token endpoint path should be fetched from issuer's openid configuration (.well-known/openid-configuration) endpoint. AzureAD has oauth2/token for instance and OAuth2Client is unable to fetch access token using client credentials flow

Instead of reading it from the OpenID discovery endpoint, we can let users configure it directly, to avoid querying the endpoint.

Duplicated by a newer issue: #238, closing in favour of that