Revisit built-in authentication #1907
Unanswered
alex-oleshkevich
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to propose the following change:
BaseUsertoidentityorget_identityuserattribute toAuthCredentialsis_authenticatedtoAuthCredentialsMotivation
Currently, we have to inherit user model from
BaseUser. The base class adds extra attributes (display_name,is_authenticated) to the user-defined model, which may be unwanted. Also, these attributes are not used by Starlette.My idea is to scope the auth related utilities in the
AuthCredentialsclass and remove it from user model.Example:
Beta Was this translation helpful? Give feedback.
All reactions