pubkey stuff
This commit is contained in:
4
auth.py
4
auth.py
@ -32,11 +32,11 @@ 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.readlines()
|
JWT_PRIV_KEY = f.read().replace('\n','')
|
||||||
|
|
||||||
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.readlines()
|
JWT_PUB_KEY = f.read().replace('\n','')
|
||||||
|
|
||||||
|
|
||||||
def getUserEntryFromDB(application: str, login: str):
|
def getUserEntryFromDB(application: str, login: str):
|
||||||
|
Reference in New Issue
Block a user