# WIP: OAuth draft implementation

* first working client implementation of oauth workflow for logging in users
This commit is contained in:
2024-04-29 12:07:06 +02:00
parent fa86cc142f
commit d69bab36da
5 changed files with 173 additions and 3 deletions
+10 -1
View File
@@ -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))
)