# OAuth fix

* fixes bug in deployment environment due to http/s usage in url
This commit is contained in:
mpeltriaux 2024-05-17 10:56:33 +02:00
parent 67de6be975
commit d1790feda8

View File

@ -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",