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

A Google account from @umich.edu is unable to sign in #70

Open
rogerdahl opened this issue Nov 28, 2024 · 0 comments
Open

A Google account from @umich.edu is unable to sign in #70

rogerdahl opened this issue Nov 28, 2024 · 0 comments
Assignees
Labels
bug Bug low priority Low priority

Comments

@rogerdahl
Copy link
Collaborator

rogerdahl commented Nov 28, 2024

This issue affects only a single Google account from @umich.edu. We have other Google accounts from @umich.edu successfully signing in.

Exception:

2024-11-20 03:59:34,954 [245485] DEBUG    idp.google: login_google() [...]
2024-11-20 03:59:39,858 [245486] DEBUG    idp.google: login_google_callback() target="https:/ezeml.edirepository.org/eml/auth/login"
2024-11-20 03:59:39,865 [245486] DEBUG    urllib3.connectionpool: Starting new HTTPS connection (1): accounts.google.com:443
2024-11-20 03:59:39,994 [245486] DEBUG    urllib3.connectionpool: https://accounts.google.com:443 "GET /.well-known/openid-configuration HTTP/11" 200 1268
2024-11-20 03:59:39,998 [245486] DEBUG    urllib3.connectionpool: Starting new HTTPS connection (1): oauth2.googleapis.com:443
2024-11-20 03:59:40,189 [245486] DEBUG    urllib3.connectionpool: https://oauth2.googleapis.com:443 "POST /token HTTP/11" 400 None
2024-11-20 03:59:40,191 [245486] ERROR    idp.google: Login unsuccessful: {
  "error": "redirect_uri_mismatch",
  "error_description": "Bad Request"
}
Traceback (most recent call last):
  File "/home/pasta/auth/webapp/idp/google.py", line 107, in login_google_callback
    client.parse_request_body_response(token_response.text)
  File "/home/pasta/miniconda3/envs/auth/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 427, in parse_request_body_response
    self.token = parse_token_response(body, scope=scope)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pasta/miniconda3/envs/auth/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in parse_token_response
    validate_token_parameters(params)
  File "/home/pasta/miniconda3/envs/auth/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 448, in validate_token_parameters
    raise_from_error(params.get('error'), params)
  File "/home/pasta/miniconda3/envs/auth/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 400, in raise_from_error
    raise CustomOAuth2Error(error=error, **kwargs)
oauthlib.oauth2.rfc6749.errors.CustomOAuth2Error: (redirect_uri_mismatch) Bad Request

Notes:

  • We are sending the same redirect_uri for the failing sign-in, as for successful ones.
  • The issue is persistent for the one account. Logs do not show the error for any other accounts, either from umich.edu, or others.
  • Sign in has been tested both from a regular browser window, and from an incognito window, where all credentials were re-entered.
  • We do not know which browser or OS was used.

Todo:

  • Though it seems unlikely, we have deleted and re-entered the redirect_uris, just in case this is an issue with out-of-sync servers at Google. The next step is for the user to try signing in again, to see if the issue is resolved.
  • We will also ask the user to try signing in on auth-d, which runs a much newer version of Authn.
  • If all else fails, we may require the user to sign in with another account, and then move their work over to that account.
@rogerdahl rogerdahl self-assigned this Nov 28, 2024
@rogerdahl rogerdahl added bug Bug medium priority Medium priority labels Nov 28, 2024
@rogerdahl rogerdahl moved this to In progress in Consolidated Issues Nov 28, 2024
@servilla servilla added low priority Low priority and removed medium priority Medium priority labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug low priority Low priority
Projects
Status: In progress
Development

No branches or pull requests

2 participants