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
-
I want to propose the following change:
BaseUser
toidentity
orget_identity
user
attribute toAuthCredentials
is_authenticated
toAuthCredentials
Motivation
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
AuthCredentials
class and remove it from user model.Example:
Beta Was this translation helpful? Give feedback.
All reactions