Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.35 KB

File metadata and controls

59 lines (39 loc) · 1.35 KB

Login

API Views

There are two views used in the login workflow:

login

rest_registration.api.views.login

logout

rest_registration.api.views.logout

Default serializers

DefaultLoginSerializer

rest_registration.api.serializers.DefaultLoginSerializer

Custom token generation

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.

List of settings

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