An auth micro-service for authentication and authorization
- Django 5
- DRF 3.9
- Redis 3.0.1
- PyJWT 1.6.4
- Fork This repo
- Clone this repo on your local
cd auth-service- Copy
.env.examplefile into new.envand update all parameters of your own. - Install and setup Postgress (For ubuntu 18.40 LTS)
sudo apt updatesudo apt install postgresql postgresql-contribsudo -i -u postgrespsql\password postgres\q
- Install pgadmin3 for maintain database (optional)
- pipenv --three (If you have not installed pipenv before visit this link(https://pypi.org/project/pipenv/)
- pipenv install (Install dependencies)
- Install redis (https://redis.io/download)
if you use pgadmin3:
- Open pgadmin3
- Click into a socket icon left-top of the pgadmin window.
- Fill up the form
- name:
KithAI - host:
localhost - maintain db:
postgres - username:
postgres - password:
postgres
- name:
- Click ok. If you won't see any error then its ok.
- Now expand
server groupsthenserversthenKithAI. Then you find databases. Click right button on it and create new database.- give database name:
auth - Owner:
postgres
- give database name:
- click ok.
- If you use command line then setup the above config or you can customise it. Update the settings file if needed.
- Run Server with this command
./runserver.sh
python manage.py test app_name
https://documenter.getpostman.com/view/5851478/RzZFCbjL
- POST -
api/v1/users - LOGIN
- POST -
api/v1/web/login(For Dashboard Users) - POST -
api/v1/mobile/login(For Mobile Users)
- POST -
- LOGOUT -
api/v1/logout - VERIFY_USER
- POST -
api/v1/verify
- POST -
- Need to implement reset password, change password, refresh token, and authorization endpoint.

