Uses django and django rest framework
(Please install docker for running via single command)
- clone repo
- open terminal in clone repository
- create .env file and paste the content given
- run docker-compose up --build
SECRET_KEY=sjncdjf76rhbyhuyhy7gRDED#TBHH&Y&YGVGGVR$R%DFRTV
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0,
SUPER_USER_NAME="Admin"
SUPER_USER_PASSWORD="Admin@123"
curl --location 'localhost:8000/auth/signup/' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "harshit@gmail.cs",
"password": "hars12123"
}'
curl --location 'localhost:8000/auth/signin/' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "harshit@gmail.cs",
"password": "hars12123"
}'
curl --location 'localhost:8000/auth/authorized-api/' \
--header 'Authorization: Bearer {signin_token}'
curl --location --request POST 'localhost:8000/auth/refresh-token/' \
--header 'Authorization: Bearer {signin_token}'
open "http://localhost:8000/admin/" on browser
login via username: Admin, password: Admin@123
click on Authapp -> User
Hear you are able to see the list of users and which user currently have token
for revoke those token select checkbox as shown in image, select revoke token action from dropdown and click on go