Skip to content
Snippets Groups Projects
Commit 5a20de91 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

FIX proper redirect url for oidc in debug mode

parent dd35a2c1
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ def api_login(login_request: LoginRequest, request: Request) -> LoginResponse:
origin = str(request.base_url)
if settings.debug:
redirect_uri = origin + settings.oic_redirect_path
redirect_uri = origin.rstrip('/') + settings.oic_redirect_path
if 'localhost' not in origin:
redirect_uri = redirect_uri.replace('http://', 'https://')
else:
......
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