-
Notifications
You must be signed in to change notification settings - Fork 782
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
All of a sudden getting invalid_scope errors with Google #288
Comments
Okay, Google broke something. The following scopes work instead just fine: scopes: @[@"https://mail.google.com/"] Essentially removing |
We're experiencing the same error on attempting to authenticate to Google. To Reproduce
Like @guidedways above, after the user accepts the authorization request, we get the same authorization error: These four scopes, broad as they are, were working without issue up until two days ago. Providing string literals of the scopes vs. the GTLR-defined scope definitions does not change the behavior for the better. |
@ProdCompDev AppAuth just use the scope string returned from Google to compose a new request in OIDTokenRequest.m. And the scope string returned from Google contains '+' but Google treats it as invalid. Confused!!! |
This was an AppAuth bug, triggered by a change in Google OAuth behavior. Google started to return "scope" in the authorization response (which is spec-compliant), using "+" to encode space (also spec-compliant). AppAuth did not correctly decode the "+" as space, looped it back on the token request, triggering an invalid scope error (as the scope string was munged). The change was rolled back server-side for iOS, so you should stop seeing this issue. We're fixing AppAuth, at which time you should consider updating. Aside:
|
Fixed client side by #291. |
Describe the bug
We've been using the AppAuth library for accessing the user's email account (reading emails) for years. All of a sudden a few days ago it stopped. The same code now produces a
invalid_scope
error.To Reproduce
The user is correctly taken to the login screen, and the error only shows up when they tap 'accept' and the app returns to focus.
Here's the error we see:
I'm not sure which scope in particular is invalid and what to do in order to fix it, as it was working fine for 4+ years.
This is happening across all iOS versions.
The text was updated successfully, but these errors were encountered: