forked from e-mission/op-admin-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-fake.py
21 lines (18 loc) · 990 Bytes
/
config-fake.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This is a template for the "config.py" file. Put all of your valid data in this file and then change the name of this
# file to "config.py".
import os
# Fill these variables when using AWS Cognito authentication; otherwise, keep them empty.
# All the variables of this class must be filled in using your credential data from your AWS Cognito panel.
class CognitoConfig:
CLIENT_ID = os.getenv("COGNITO_CLIENT_ID", '')
CLIENT_SECRET = os.getenv("COGNITO_CLIENT_SECRET", '')
REDIRECT_URL = os.getenv("COGNITO_REDIRECT_URL", '')
TOKEN_ENDPOINT = os.getenv("COGNITO_TOKEN_ENDPOINT", '')
USER_POOL_ID = os.getenv("COGNITO_USER_POOL_ID", '')
REGION = os.getenv("COGNITO_REGION", '')
AUTH_URL = os.getenv("COGNITO_AUTH_URL", '')
# Fill this variable when using basic authentication; otherwise, keep it empty.
# This dictionary contains all the valid usernames and passwords that users can authenticate with.
VALID_USERNAME_PASSWORD_PAIRS = {
'hello': 'world'
}