issues
search
oreotabetai
/
user-auth-jwt-python-api
MIT License
1
stars
0
forks
source link
connecting to mysql
#28
Closed
yamakenji24
closed
3 years ago
yamakenji24
commented
3 years ago
implementation list
[x] connect to mysql
[x] encode jwt by bcrypt password
[x] decode jwt and search user
What i did in this PR
Mysql Connection
connect to mysql in db.py
connections requires some config data, which can be used from env or by default.
Password encoding and JWT
changed using fake information to DB data
jwt is created by RS256, which key is generated from pem(secret)
directions to the pem file can be defined from env, or by default
demo
Authorization
authorize user from jwt
return user information if jwt is as expected
demo
implementation list
What i did in this PR
Mysql Connection
Password encoding and JWT
demo
Authorization
demo