providers/app_gw: fix Issuer URL being incorrect, fix incorrect length cookie secret

This commit is contained in:
Jens Langhammer
2020-07-25 21:34:14 +02:00
parent 738ced3327
commit 9c1a824dc4
3 changed files with 12 additions and 3 deletions

View File

@ -18,7 +18,7 @@ LOGGER = get_logger()
def get_cookie_secret():
"""Generate random 50-character string for cookie-secret"""
return "".join(
SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(50)
SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(32)
)