-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b217153
commit f405f72
Showing
7 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from os import environ | ||
|
||
from sanic.utils import str_to_bool | ||
from sanic.log import logger | ||
|
||
""" | ||
Copyright (c) 2020-present Nicholas Aidan Stewart | ||
|
@@ -41,7 +40,6 @@ | |
"TWO_STEP_SESSION_EXPIRATION": 300, | ||
"AUTHENTICATION_SESSION_EXPIRATION": 86400, | ||
"AUTHENTICATION_REFRESH_EXPIRATION": 2592000, | ||
"AUTHENTICATION_REFRESH_AUTO": True, | ||
"ALLOW_LOGIN_WITH_USERNAME": False, | ||
"INITIAL_ADMIN_EMAIL": "[email protected]", | ||
"INITIAL_ADMIN_PASSWORD": "admin123", | ||
|
@@ -68,7 +66,6 @@ class Config(dict): | |
TWO_STEP_SESSION_EXPIRATION (int): The amount of seconds till two-step session expiration on creation. Setting to 0 will disable expiration. | ||
AUTHENTICATION_SESSION_EXPIRATION (int): The amount of seconds till authentication session expiration on creation. Setting to 0 will disable expiration. | ||
AUTHENTICATION_REFRESH_EXPIRATION (int): The amount of seconds till authentication session refresh expiration. | ||
AUTHENTICATION_REFRESH_AUTO (bool): Expired sessions will be automatically refreshed and passed into endpoint on authentication attempt, requires session to be re-encoded. | ||
ALLOW_LOGIN_WITH_USERNAME (bool): Allows login via username and email. | ||
INITIAL_ADMIN_EMAIL (str): Email used when creating the initial admin account. | ||
INITIAL_ADMIN_PASSWORD (str): Password used when creating the initial admin account. | ||
|
@@ -89,7 +86,6 @@ class Config(dict): | |
TWO_STEP_SESSION_EXPIRATION: int | ||
AUTHENTICATION_SESSION_EXPIRATION: int | ||
AUTHENTICATION_REFRESH_EXPIRATION: int | ||
AUTHENTICATION_REFRESH_AUTO: bool | ||
ALLOW_LOGIN_WITH_USERNAME: bool | ||
INITIAL_ADMIN_EMAIL: str | ||
INITIAL_ADMIN_PASSWORD: str | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters