-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
21 lines (16 loc) · 993 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Config(object):
# In a production app, store this instead in KeyVault or an environment variable
# TODO: Enter your client secret from Azure AD below
CLIENT_SECRET = "{YOUR-CLIENT-SECRET}"
AUTHORITY = "https://login.microsoftonline.com/common" # For multi-tenant app
# AUTHORITY = "https://login.microsoftonline.com/Enter_the_Tenant_Name_Here"
# TODO: Enter your application client ID here
CLIENT_ID = "{YOUR-APP-CLIENT-ID}"
# TODO: Enter the redirect path you want to use for OAuth requests
# Note that this will be the end of the URI entered back in Azure AD
REDIRECT_PATH = "/{YOUR-REDIRECT-PATH}" # Used to form an absolute URL,
# which must match your app's redirect_uri set in AAD
# You can find the proper permission names from this document
# https://docs.microsoft.com/en-us/graph/permissions-reference
SCOPE = ["User.Read"]
SESSION_TYPE = "filesystem" # So token cache will be stored in server-side session