Commit 94007c20 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Rename python-auth -> common-web submodule

parent f63ce916
[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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment