Skip to content

Bug in the Basic Auth parsing in Oauth2RequestValidator #25

@synasius

Description

@synasius

This is related to issue #24.

Problem is here:

class OAuth2Validator(RequestValidator):
    def authenticate_client(self, request, *args, **kwargs):

        # ...
        auth_string_decoded = base64.b64decode(auth_string).decode(encoding)
        client_id, client_secret = auth_string_decoded.split(':')

        # ...

We should split the base64 unencoded string only at the first colon.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions