Skip to content
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

OAuth2Helper not sending custom params on client credentials flow #184

Open
softwaresale opened this issue Mar 16, 2024 · 0 comments
Open

Comments

@softwaresale
Copy link

Hello! I am currently using this package to interface with the Auth0 Management API. That flow uses the client credentials flow. Auth0 requires that you send an audience parameter when requesting a flow, but it appears that the following function:

} else if (grantType == clientCredentials) {
tknResp = await client.getTokenWithClientCredentialsFlow(
clientId: clientId,
//The clientSecret param can't be null at this point... It has been validated by the above _validateAuthorizationParams call...
clientSecret: clientSecret!,
customHeaders: accessTokenHeaders,
scopes: scopes);
} else if (grantType == implicitGrant) {

does not send the custom parameters provided. Is this intentional? If not, it would be nice if client credentials flow can support custom auth token parameters. I can submit a PR for this feature if I should make the change. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant