Skip to content
Snippets Groups Projects
Commit 94007c20 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Rename python-auth -> common-web submodule

parent f63ce916
No related branches found
No related tags found
No related merge requests found
[submodule "auth"]
path = auth
url = git@git.fsmpi.rwth-aachen.de:protokollsystem/python-auth.git
path = common
url = git@git.fsmpi.rwth-aachen.de:protokollsystem/common-web.git
File moved
......@@ -73,7 +73,7 @@ SESSION_PROTECTION = "strong" # do not change
# authentication
SECURITY_KEY = "some other random string" # change this
AUTH_MAX_DURATION = 300
from auth.auth import LdapManager, ADManager, StaticUserManager
from common.auth import LdapManager, ADManager, StaticUserManager
AUTH_BACKENDS = [
LdapManager(
host="ldap.example.com",
......
......@@ -124,7 +124,7 @@ def code_filter(text):
return "<code>{}</code>".format(text)
from auth.auth import UserManager, SecurityManager, User
from common.auth import UserManager, SecurityManager, User
max_duration = getattr(config, "AUTH_MAX_DURATION")
user_manager = UserManager(backends=config.AUTH_BACKENDS)
security_manager = SecurityManager(config.SECURITY_KEY, max_duration)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment