-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.py
More file actions
29 lines (22 loc) · 949 Bytes
/
Copy pathconfig.example.py
File metadata and controls
29 lines (22 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CAS_LOGIN_URL = "https://cas.sustech.edu.cn/cas/login"
CAS_VALIDATE_URL = "https://cas.sustech.edu.cn/cas/p3/serviceValidate"
SERVICE_URL = "https://cas-proxy.example.org/callback"
# Exact scheme/host/port matching is enforced. A host-only entry allows any path
# on that host. Multiple entries can be separated by commas or written as a list.
REDIRECT_URI_ALLOWLIST = ["https://sso.example.org"]
CLIENT_ID = "cra-cas-proxy"
CLIENT_SECRET = "replace-with-a-new-random-secret"
SECRET_KEY = "replace-with-a-long-random-jwt-signing-secret"
ACCESS_TOKEN_EXPIRY = 1800
AUTH_CODE_EXPIRY = 300
SESSION_EXPIRY = 600
DATABASE_PATH = "cas_proxy.sqlite3"
ISSUER = "cas-proxy"
CAS_REQUEST_TIMEOUT = 8.0
# Keep this true behind HTTPS. Set to False only for local HTTP testing.
COOKIE_SECURE = True
COOKIE_SAMESITE = "Lax"
HOST = "127.0.0.1"
PORT = 59084
# Keep False if your client does not send redirect_uri to /token.
REQUIRE_TOKEN_REDIRECT_URI = False