Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
ef0793be4e
|
|||
3f2442e259
|
6
auth.py
6
auth.py
@ -32,11 +32,13 @@ 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().replace('\n','')
|
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().replace('\n','')
|
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