Skip to content
Snippets Groups Projects
Verified Commit 3dc7027d authored by Giordon Holtsberg Stark's avatar Giordon Holtsberg Stark
Browse files

leeway as env variable

parent 43f00a78
No related branches found
No related tags found
No related merge requests found
Pipeline #4914129 passed
......@@ -48,7 +48,9 @@ class User:
self._audience = audience
self._prefix_url = prefix_url
# update jwtOptions if provided
self._jwtOptions = {"leeway": 2} # **jwtOptions, python3 only
self._jwtOptions = {
"leeway": int(settings.ITKDB_LEEWAY)
} # **jwtOptions, python3 only
self._jwtOptions.update(jwtOptions or {})
# serialization/persistence
self._save_auth = save_auth
......
......@@ -8,3 +8,4 @@ ITKDB_ACCESS_AUDIENCE = "https://itkpd-test.unicorncollege.cz"
ITKDB_AUTH_URL = "https://uuidentity.plus4u.net/uu-oidc-maing02/bb977a99f4cc4c37a2afce3fd599d0a7/oidc/"
ITKDB_SITE_URL = "https://itkpd-test.unicorncollege.cz/"
ITKDB_CASSETTE_LIBRARY_DIR = "tests/integration/cassettes"
ITKDB_LEEWAY = 2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment