Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Make prepare_request() asynchronous #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michael-sulyak
Copy link
Contributor

No description provided.

@andrew-ld
Copy link

why make asynchronous a function that not have any async thing

@michael-sulyak
Copy link
Contributor Author

Because other developers can write their auth_backend and there may be calls to asynchronous functions.

@fscherf
Copy link
Contributor

fscherf commented May 23, 2020

hi @andrew-ld,

looks good to me. could you add your comment on why you want this method to be async to your commit message?

It is necessary to call asynchronous functions. For example, getting permissions from a database (using an asynchronous driver) to check access to methods.
@michael-sulyak michael-sulyak force-pushed the async-prepare-requests branch from cd57d7a to efdc0a5 Compare May 23, 2020 14:21
@michael-sulyak
Copy link
Contributor Author

@fscherf done

@fscherf
Copy link
Contributor

fscherf commented May 23, 2020

@expert-m thx! I will merge your pr in the next release. Currently your patch will break the django login backend which has no tests currently, but is a very critical piece of code for my company.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants