43 lines
2.1 KiB
Python
43 lines
2.1 KiB
Python
class DefaultConfig:
|
|
DEBUG = False
|
|
TESTING = False
|
|
DATABASE_URI = "users.db"
|
|
SECRET_KEY = SECURITY_PASSWORD_SALT='default'
|
|
|
|
|
|
class Config(DefaultConfig):
|
|
|
|
AUTHORITY = "https://login.microsoftonline.com/propedal.at",
|
|
CLIENT_ID = "52f192c4-875d-44a2-b28a-575e920225e5", # client public id (from azure web interface)#"da3fc28c-5fcf-4884-9477-903a4420cc3d",
|
|
scope = ["https://graph.microsoft.com/.default"], # scopes from api
|
|
secret = "irj8Q~PliZzSe7JnXEaiWKQ6v0CAg1DTZOO~Ccsf" # api secret key (from azure web interface)#"bqP8Q~SEp_AmYYDZoEykXxZdADoCOhzOOhbO3c3T"
|
|
USER_ID = "simone.profus@propedal.at"
|
|
CALENDAR_ID = "AAMkADY0MDg1MTVjLTg5ZjItNGQxYS04MGQ3LWY2NjJmYjM0YmZhOQBGAAAAAADXD7SdVoWYQI4RYXbBumMEBwAf_ngZxs71RonY3GuLL8TVAAAAAAEGAAAf_ngZxs71RonY3GuLL8TVAADHFxN2AAA=" # calendar id - determined by /users/id/calendars
|
|
|
|
|
|
class ProductionConfig(Config):
|
|
SECRET_KEY = '\xacI4\x077\x16?Q\xb4")\xdb\x066\x95\x11i\x0b\x0c&\xb6rP\''
|
|
SECURITY_PASSWORD_SALT = '>\xe3\x9bz\xfd\xbc[\xe22\xcfK\xca\x88!\xd8\xd5,\xd0\x95\x0c\x02\xad\xfa\x9d'
|
|
DATABASE_URI = 'mysql://user@localhost/foo'
|
|
|
|
class DevelopmentConfig(Config):
|
|
DEBUG = True
|
|
|
|
class TestingConfig(Config):
|
|
TESTING = True
|
|
|
|
class MsalDefaulConfig():
|
|
AUTHORITY = "https://login.microsoftonline.com/common"
|
|
SCOPE = ["https://graph.microsoft.com/.default"] # scopes from api
|
|
CLIENT_ID = "" # client public id (from azure web interface)
|
|
SECRET = "" # api secret key (from azure web interface)
|
|
USER_ID = "user@domain"
|
|
CALENDAR_ID = "" # calendar id - determined by /users/id/calendars
|
|
|
|
class MsalConfig(MsalDefaulConfig):
|
|
AUTHORITY = "https://login.microsoftonline.com/propedal.at"
|
|
CLIENT_ID = "52f192c4-875d-44a2-b28a-575e920225e5" # client public id (from azure web interface)
|
|
SECRET = "irj8Q~PliZzSe7JnXEaiWKQ6v0CAg1DTZOO~Ccsf" # api secret key (from azure web interface)
|
|
USER_ID = "simone.profus@propedal.at"
|
|
CALENDAR_ID = "AAMkADY0MDg1MTVjLTg5ZjItNGQxYS04MGQ3LWY2NjJmYjM0YmZhOQBGAAAAAADXD7SdVoWYQI4RYXbBumMEBwAf_ngZxs71RonY3GuLL8TVAAAAAAEGAAAf_ngZxs71RonY3GuLL8TVAADHFxN2AAA=" # calendar id - determined by /users/id/calendars
|