-
Notifications
You must be signed in to change notification settings - Fork 745
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
AbstractProvider::getAccessToken
must send default scopes
#1029
Comments
liayn
added a commit
to liayn/oauth2-client
that referenced
this issue
May 16, 2024
Resolves: thephpleague#1029
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using password grant to retrieve an access token some (all?) providers require a scope to be sent along.
Examples are: Microsoft EntraID, WSO2
Documentation: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth-ropc#authorization-request
\League\OAuth2\Client\Provider\AbstractProvider::getAccessToken
should therefore be adjusted to:Keep in mind that it is impossible to make a workaround for this issue.
That is due to the fact that it is not possible to retrieve the scope separator or default scopes from outside a provider (methods are protected in interface!).
The text was updated successfully, but these errors were encountered: