Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
f56db65012
|
2
auth.py
2
auth.py
@ -33,12 +33,10 @@ UserEntry = namedtuple('UserEntry', ['id', 'login', 'expiry', 'claims'])
|
|||||||
JWT_PRIV_KEY = ""
|
JWT_PRIV_KEY = ""
|
||||||
with open('/opt/app/config/authservice.key', 'r') as f:
|
with open('/opt/app/config/authservice.key', 'r') as f:
|
||||||
JWT_PRIV_KEY = f.read()
|
JWT_PRIV_KEY = f.read()
|
||||||
print("DEBUG PRIVKEY: {}".format(JWT_PRIV_KEY))
|
|
||||||
|
|
||||||
JWT_PUB_KEY = ""
|
JWT_PUB_KEY = ""
|
||||||
with open('/opt/app/config/authservice.pub', 'r') as f:
|
with open('/opt/app/config/authservice.pub', 'r') as f:
|
||||||
JWT_PUB_KEY = f.read()
|
JWT_PUB_KEY = f.read()
|
||||||
print("DEBUG PUBKEY: {}".format(JWT_PUB_KEY))
|
|
||||||
|
|
||||||
|
|
||||||
def getUserEntryFromDB(application: str, login: str):
|
def getUserEntryFromDB(application: str, login: str):
|
||||||
|
Reference in New Issue
Block a user