Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Is the *request.client.client_id* attribute really necessairy? #389

@AdorablePotato

Description

@AdorablePotato

Hi,

thank you for this great library.

I implemented the request validator as described in the documentation, but I get this exception after executing the authenticate_client method:

Authenticate client must set the request.client.client_id attribute in authenticate_client.

https://github.com/idan/oauthlib/blob/master/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py#L374

Is there a difference between request.client_id and request.client.client_id? I think the line of code should be

if not hasattr(request, 'client_id'):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions