Auth
Login
-
class
dj_rest_auth.views.LoginView(**kwargs) Check the credentials and return the REST Token if the credentials are valid and authenticated. Calls Django Auth login method to register User ID in Django session framework
Accept the following POST parameters: username, password Return the REST Framework Token Object’s key.
Logout
-
class
dj_rest_auth.views.LogoutView(**kwargs) Calls Django logout method and delete the Token object assigned to the current User object.
Accepts/Returns nothing.
Password Change
-
class
dj_rest_auth.views.PasswordChangeView(**kwargs) Calls Django Auth SetPasswordForm save method.
Accepts the following POST parameters: new_password1, new_password2 Returns the success/fail message.
Password Reset
-
class
dj_rest_auth.views.PasswordResetView(**kwargs) Calls Django Auth PasswordResetForm save method.
Accepts the following POST parameters: email Returns the success/fail message.
Password Confirm
-
class
dj_rest_auth.views.PasswordResetConfirmView(**kwargs) Password reset e-mail link is confirmed, therefore this resets the user’s password.
- Accepts the following POST parameters: token, uid,
- new_password1, new_password2
Returns the success/fail message.
Token Refresh
-
class
rest_framework_simplejwt.views.TokenRefreshView(**kwargs) Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
Token Verify
-
class
rest_framework_simplejwt.views.TokenVerifyView(**kwargs) Takes a token and indicates if it is valid. This view provides no information about a token’s fitness for a particular use.
User
-
class
dj_rest_auth.views.UserDetailsView(**kwargs) Reads and updates UserModel fields Accepts GET, PUT, PATCH methods.
Default accepted fields: username, first_name, last_name Default display fields: pk, username, email, first_name, last_name Read-only fields: pk, email
Returns UserModel fields.