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

GitHub OAuth flow failing #345

Open
slint opened this issue Jan 27, 2025 · 0 comments
Open

GitHub OAuth flow failing #345

slint opened this issue Jan 27, 2025 · 0 comments

Comments

@slint
Copy link
Member

slint commented Jan 27, 2025

Version: v5.1.0

Going through the login OAuth flow with GitHub, results the following exception:

  File "flask/app.py", line 1511, in wsgi_app
    response = self.full_dispatch_request()
  File "flask/app.py", line 919, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "invenio_oauthclient/views/client.py", line 174, in authorized
    return _authorized(remote_app)
  File "invenio_oauthclient/views/client.py", line 167, in _authorized
    return handler()
  File "invenio_oauthclient/handlers/utils.py", line 52, in decorated
    return f(*((data,) + args), **kwargs)
  File "invenio_oauthclient/handlers/utils.py", line 34, in inner
    return f(args[0], remote, *args[1:], **kwargs)
  File "invenio_oauthclient/handlers/ui.py", line 103, in inner
    return _oauth_error_handler(remote, _f, *args, **kwargs)
  File "invenio_oauthclient/handlers/ui.py", line 52, in _oauth_error_handler
    return f(remote, *args, **kwargs)
  File "invenio_oauthclient/handlers/ui.py", line 148, in authorized_signup_handler
    next_url = authorized_handler(resp, remote, *args, **kwargs)
  File "invenio_oauthclient/handlers/authorized.py", line 54, in authorized_handler
    token = response_token_setter(remote, resp)
  File "invenio_oauthclient/handlers/token.py", line 74, in response_token_setter
    raise OAuthResponseError("Bad OAuth authorized request", remote, resp)

OAuthResponseError: Bad OAuth authorized request
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

1 participant