There are two views used in the login workflow:
rest_registration.api.views.login
rest_registration.api.views.logout
rest_registration.api.serializers.DefaultLoginSerializer
One can replace auth-token-manager-class-setting
with his / her own class, which should inherit from / implement rest_registration.auth_token_managers.AbstractAuthTokenManager
. The AbstractAuthTokenManager
class has following methods:
rest_registration.auth_token_managers.AbstractAuthTokenManager
If you're using custom authentication class, you should set login-retrieve-token-setting
explicitly to True
as token retrieval can be automatically turned on only when rest_framework.authentication.TokenAuthentication
(or a subclass) is used.
These settings can be used to configure login views. You should add them as keys (with values) to your settings.REST_REGISTRATION
dict.
detailed_configuration__login