-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
38 lines (33 loc) · 922 Bytes
/
constants.py
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
30
31
32
33
34
35
36
37
38
""" Constants file for Auth0's seed project
"""
AUTH0_CLIENT_ID = "AUTH0_CLIENT_ID"
AUTH0_CLIENT_SECRET = "AUTH0_CLIENT_SECRET"
AUTH0_CALLBACK_URL = "AUTH0_CALLBACK_URL"
AUTH0_DOMAIN = "AUTH0_DOMAIN"
AUTH0_AUDIENCE = "AUTH0_AUDIENCE"
PROFILE_KEY = "profile"
SECRET_KEY = "SECRET_KEY"
JWT_PAYLOAD = "jwt_payload"
MYSQL_USERNAME = "MYSQL_USERNAME"
MYSQL_PASSWORD = "MYSQL_PASSWORD"
MYSQL_IP = "MYSQL_IP"
MYSQL_DB = "MYSQL_DB"
JWT_ALGORITHM = "RS256"
JWT_PAYLOAD = "jwt_payload"
JWT_VERIFY_DEFAULTS = {
"verify_signature": True,
"verify_aud": True,
"verify_iat": True,
"verify_exp": True,
"verify_nbf": True,
"verify_iss": True,
"verify_sub": True,
"verify_jti": True,
"verify_at_hash": True,
"leeway": 0,
}
TOKEN_KEY = "auth0_token"
MGMNT_API_TOKEN = "mgmnt_api_token"
ACCESS_LEVELS = ["admin", "devel", "ea", "stable"]
LOG_FILE = "logs/portal.log"
TIMEZONE = "Pacific/Auckland"