-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debrand: add the branding config variable
- Loading branch information
1 parent
5786495
commit 9413217
Showing
9 changed files
with
44 additions
and
35 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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
class Config: | ||
FLASK_COVERAGE = 0 | ||
MOCKSERVER = False | ||
BRANDING = "Auth" | ||
LDAP_HOST = "localhost" | ||
LDAP_PORT = 8369 | ||
LDAP_BASE_DN = "dc=my-domain,dc=com" | ||
|
@@ -34,8 +35,7 @@ class Config: | |
] | ||
|
||
MAIL_USE_TLS = True | ||
MAIL_DEFAULT_SENDER = "[email protected]" | ||
MAIL_NEXT_ZAPF_ORGA = "[email protected]" | ||
MAIL_DEFAULT_SENDER = "[email protected]" | ||
|
||
CACHE_TYPE = "simple" | ||
|
||
|
@@ -50,11 +50,20 @@ def init_app(app): | |
|
||
|
||
class DevelopmentConfig(Config): | ||
print(" * Using development config!") | ||
|
||
SECRET_KEY = "secrets" | ||
DEBUG = True | ||
RECAPTCHA_PUBLIC_KEY = "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" | ||
RECAPTCHA_PRIVATE_KEY = "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe" | ||
RECAPTCHA_USE_SSL = False | ||
|
||
LDAP_BASE_DN = "dc=example,dc=com" | ||
LDAP_BIND_USER_DN = "uid=auth,dc=example,dc=com" | ||
LDAP_BIND_USER_PASSWORD = "test" | ||
import ldap3 | ||
|
||
PASSWORD_HASHING_FUNC = ldap3.HASHED_SALTED_SHA | ||
# MOCKSERVER = True | ||
|
||
|
||
|
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
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