Files
saladeaula.digital/id.saladeaula.digital/app/config.py
2025-12-04 10:56:36 -03:00

26 lines
533 B
Python

import os
ISSUER: str = os.getenv('ISSUER') # type: ignore
EMAIL_SENDER = ('EDUSEG®', 'noreply@eduseg.com.br')
OAUTH2_TABLE: str = os.getenv('OAUTH2_TABLE') # type: ignore
OAUTH2_REFRESH_TOKEN_EXPIRES_IN = 86_400 * 7 # 7 days
OAUTH2_SCOPES_SUPPORTED: list[str] = [
'openid',
'profile',
'email',
'offline_access',
'apps:admin',
'apps:studio',
'apps:insights',
]
OAUTH2_DEFAULT_SCOPES = {
'email',
'offline_access',
'openid',
'profile',
}
SESSION_EXPIRES_IN = 86_400 * 30 # 30 days