Skip to content

authenticate passing the current request to the backends that need it#64

Open
nschlemm wants to merge 2 commits into
danfairs:masterfrom
nschlemm:authenticate-with-request
Open

authenticate passing the current request to the backends that need it#64
nschlemm wants to merge 2 commits into
danfairs:masterfrom
nschlemm:authenticate-with-request

Conversation

@nschlemm

Copy link
Copy Markdown
Contributor

e.g. https://django-axes.readthedocs.io/en/latest/3_usage.html#authenticating-users

Otherwise that will fail with AxesBackendRequestParameterRequired('AxesBackend requires a request as an argument to authenticate')

@nschlemm

Copy link
Copy Markdown
Contributor Author

@danfairs can you please give me feedback on this PR? thx!

@danfairs

Copy link
Copy Markdown
Owner

Looks fine, could you add a quick test to make sure that the request is being passed please? (Also, can I confirm that the tests don't pass with this change and the messages app added? I'm afraid I don't have a dev env right now to check it myself). Thanks!

@bittner

bittner commented Jan 25, 2023

Copy link
Copy Markdown

Just a heads-up: The changes in this PR are partly covered by #67, which was merged in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants