Skip to content

Request object missing from Django authentication #636

@ripal-pm

Description

@ripal-pm

Hi,

First of all, thanks for creating this toolkit and hope this request will expand it's usage.

Many third party AUTHENTICATION_BACKENDS requires request object. This toolkit is not passing request object to django.contrib.auth.authenticate(). If you will update oauth2_validators.py=>validate_user's authenticate call from authenticate(username=username, password=password) to authenticate(request=request, username=username, password=password) will fix this issue.

Hope you will be able to make this change quickly.

Thanks with best regards,
ripal-pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions