From d1790feda8cee360cb9ad100d7aad55a0f437dd1 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Fri, 17 May 2024 10:56:33 +0200 Subject: [PATCH] # OAuth fix * fixes bug in deployment environment due to http/s usage in url --- konova/views/oauth.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/konova/views/oauth.py b/konova/views/oauth.py index 94dee2d..5748d48 100644 --- a/konova/views/oauth.py +++ b/konova/views/oauth.py @@ -94,11 +94,7 @@ class OAuthCallbackView(View): authentication_code = request.GET.get("code") oauth_acces_token_url = f"{SSO_SERVER_BASE}o/token/" - callback_url = request.build_absolute_uri( - reverse( - "oauth-callback" - ) - ) + callback_url = f'{BASE_URL}{reverse("oauth-callback")}' params = { "grant_type": "authorization_code",