Skip to content
Snippets Groups Projects
Commit a6b2f0e0 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

remove allowed groups for testing

parent 34a35d31
No related branches found
No related tags found
No related merge requests found
Pipeline #13154 passed
......@@ -94,17 +94,17 @@ def authenticate() -> flask.Response:
current_timestamp = round(datetime.datetime.now().timestamp())
found_allowed_group = False
#found_allowed_group = False
for group in claims["groups"]:
if group in flask.current_app.config["ALLOWED_OIDC_GROUPS"]:
found_allowed_group = True
break
#for group in claims["groups"]:
#if group in flask.current_app.config["ALLOWED_OIDC_GROUPS"]:
#found_allowed_group = True
#break
if not found_allowed_group:
raise werkzeug.exceptions.Unauthorized(
"Nemáš dostatečné skupiny k přístupu do Generátoru."
)
#if not found_allowed_group:
#raise werkzeug.exceptions.Unauthorized(
#"Nemáš dostatečné skupiny k přístupu do Generátoru."
#)
jwt = (
authlib.jose.jwt.encode(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment