ACTGrants
Authentication
Here lie all the endpoints related to Users, Authentication, Registration, and Social Authentication
POSTLogin
http://localhost:8000/rest-auth/login/
You can send either one of username or email. After correct creds are verified the server will send a token back to the client. Please put this token in the Headers of each request from the authenticated user after login. With the following key and value.
Key: Authorization
Value: Token <token string, eg: 9611e98cb7f2740ab40cf267611c40f705b2cebd>
AUTHORIZATIONAPI Key
Key
Value
Bodyurlencoded
username
password
Example Request
Login - Incorrect Credentials
400 Bad Request
Example Response
Content-Type
Vary
Allow
X-Frame-Options
Content-Length
Referrer-Policy
Server
Date
POSTPassword Reset
http://localhost:8000/rest-auth/password/reset/
This will send an email to the user so that they can reset their password. They will reset the password on the webapp itself. The email looks like:
Bodyurlencoded
email
Example Request
Password Reset
200 OK
Example Response
Content-Type
Vary
Allow
X-Frame-Options
Content-Length
Referrer-Policy
Server
Date
POSTChange Password
http://localhost:8000/rest-auth/password/change/
This allows a user who is already logged in to change their password.
AUTHORIZATIONAPI Key
Key
Value
Bodyurlencoded
new_password1
new_password2
old_password
Example Request
Change Password
200 OK
Example Response
Content-Type
Vary
Allow
X-Frame-Options
Content-Length
Referrer-Policy
Set-Cookie
Server
Date