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

phephpleague/oauth2-client 2.8 #33

Open
kaioken opened this issue Dec 14, 2024 · 6 comments
Open

phephpleague/oauth2-client 2.8 #33

kaioken opened this issue Dec 14, 2024 · 6 comments

Comments

@kaioken
Copy link

kaioken commented Dec 14, 2024

Hey guys, I believe the new version of auth2-client 2.8 is causing some issues. My test stated failing after the update. I haven’t checked how to fix it yet, but I wanted to let you know.

 Unauthorized

  at vendor/webleit/zohocrmapi/src/Exception/ApiError.php:107
    103▕                 throw new MandatoryDataNotFound($response, $details);
    104▕             case self::INVALID_URL_PATTERN:
    105▕                 throw new InvalidUrlPattern($response, $details);
    106▕             case self::OAUTH_SCOPE_MISMATCH:
  ➜ 107▕                 throw new OAuthScopeMismatch($response, $details);
    108▕             case self::NO_PERMISSION:
    109▕                 throw new Unauthorized($response, $details);
    110▕             case self::INTERNAL_ERROR:
    111▕                 throw new ApiError($response, $details);
@Skullbock
Copy link
Collaborator

Seems a weird error to have. Are you sure the token you're using is still valid and covers the scopes you asked for?

@kaioken
Copy link
Author

kaioken commented Dec 16, 2024

Yep , once i downgrade the versión of oatuh library everything worked as expected

@Skullbock
Copy link
Collaborator

Can you test 4.3.1? we've received a PR regarding a change in the default scopes, just want to see if that is enough to fix it

@kaioken
Copy link
Author

kaioken commented Dec 19, 2024

Will do

@kaioken
Copy link
Author

kaioken commented Dec 19, 2024

@Skullbock nop it didn't :(

@smilingpeanut
Copy link

I can confirm the same behavior as @kaioken. Forcing 2.7.0 fixes the issue.

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

3 participants