Skip to content

oauth.py _parse_access_token function uses access_token instead of id_token #2003

@keanpaderes

Description

@keanpaderes

OS: MacOS Catalina 10.15.7
Docker Version: 20.10.7
Aleph Version: 3.11.0

Good day! We stumbled upon an error while integrating Google OAuth to our Aleph Instance. We have traced the problem to aleph/aleph/oauth.py, specifically the _parse_access_token function (line 28). In its current form, it uses the access_token property which leads to an error when authlib's JsonWebToken.decode function parses it as access_token is not JWT. It should use id_token property which is also available in the oauth_token parameter and we confirmed that it works when we applied the change on our local image.

Screen Shot 2021-10-07 at 4 29 30 PM

Metadata

Metadata

Assignees

Labels

backendIssues related to Aleph’s backend, API, CLI etc.bugThings that should work, but don’t

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions