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

fix: Pass the scope conditionally for OAuth2 Password Credentials #2447

Merged

Conversation

nicolasnobelis
Copy link
Contributor

The scope param is always passed (when according to the spec, it is optional).

The server responds with

{
"error": "invalid_scope",
"error_description": "Invalid scopes: "
}

Fixes: #2446.

@pietrygamat
Copy link
Contributor

pietrygamat commented Jun 12, 2024

The same is true for other oauth2 grant types. Perhaps it's worth updating different ones as well?

@nicolasnobelis nicolasnobelis force-pushed the bugfix/fix_password_grant_type branch 4 times, most recently from 30250d9 to 8ec912a Compare June 13, 2024 14:18
@helloanoop helloanoop merged commit d88bb68 into usebruno:main Jun 19, 2024
@helloanoop
Copy link
Contributor

Merged!

Thanks for working on this @nicolasnobelis !
Thanks for the review @pietrygamat @lohxt1 !

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

Successfully merging this pull request may close these issues.

OAuth2: The scope in case of Password Credentials grant type
4 participants