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

Getting access token from Auth0 with league/oauth2-client:2.8.0 is not possible anymore #28

Open
matweew opened this issue Dec 11, 2024 · 2 comments

Comments

@matweew
Copy link

matweew commented Dec 11, 2024

Auth0 returns the error "Client has not been granted scopes: openid, email"

In v2.8 scopes are now sent together with token request

    public function getDefaultScopes()
    {
        return ['openid', 'email'];
    }

It was related thephpleague/oauth2-client#1029 and changed in thephpleague/oauth2-client#1030

@barryvdh
Copy link

Can you try if thephpleague/oauth2-client#1053 fixes your issue?

@matweew matweew changed the title Getting access token from Auth0 league/oauth2-client:2.8.0 is not possible anymore Getting access token from Auth0 with league/oauth2-client:2.8.0 is not possible anymore Dec 23, 2024
@matweew
Copy link
Author

matweew commented Dec 23, 2024

@barryvdh I've tried your branch and works good with Auth0.

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

2 participants