# WIP: OAuth draft implementation
* first working client implementation of oauth workflow for logging in users
This commit is contained in:
@@ -5,9 +5,18 @@ Contact: michel.peltriaux@sgdnord.rlp.de
|
||||
Created on: 31.01.22
|
||||
|
||||
"""
|
||||
import random
|
||||
import string
|
||||
|
||||
# SSO settings
|
||||
SSO_SERVER_BASE = "http://127.0.0.1:8000/"
|
||||
SSO_SERVER = f"{SSO_SERVER_BASE}sso/"
|
||||
SSO_PRIVATE_KEY = "CHANGE_ME"
|
||||
SSO_PUBLIC_KEY = "CHANGE_ME"
|
||||
SSO_PUBLIC_KEY = "CHANGE_ME"
|
||||
|
||||
# OAuth
|
||||
OAUTH_CODE_VERIFIER = ''.join(
|
||||
random.choice(
|
||||
string.ascii_uppercase + string.digits
|
||||
) for _ in range(random.randint(43, 128))
|
||||
)
|
||||
Reference in New Issue
Block a user