Skip to content

Accessing client/application from request #1185

@femesq

Description

@femesq

Debugging some OAuth-authenticated request, I noticed that it passes by this line:
https://github.com/jazzband/django-oauth-toolkit/blob/492a867499b50f348c28db4ef3e429e8f46dc412/oauth2_provider/oauth2_validators.py#L426

Although I can read request.user inside my "protected" views, the client attribute is not available on request.

I'd like to log some actions, registering the application the user authorized to make these actions.... Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions