From cc3fddfd22624af4d360825136db4970219e3919 Mon Sep 17 00:00:00 2001 From: radex Date: Mon, 21 Aug 2023 21:36:44 +0200 Subject: [PATCH] settings: fix oauth_redirect_is_http --- docker-compose.dev-override.yml | 1 + spejstore/settings.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.dev-override.yml b/docker-compose.dev-override.yml index 1c34486..8db47a0 100644 --- a/docker-compose.dev-override.yml +++ b/docker-compose.dev-override.yml @@ -13,3 +13,4 @@ services: # - SPEJSTORE_SECRET= # - SPEJSTORE_MEDIA_ROOT= # - SPEJSTORE_REQUIRE_AUTH=true + - SPEJSTORE_OAUTH_REDIRECT_IS_HTTPS=false diff --git a/spejstore/settings.py b/spejstore/settings.py index 286957d..262b4ea 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -204,7 +204,7 @@ REST_FRAMEWORK = { SOCIAL_AUTH_HSWAW_KEY = env("CLIENT_ID") SOCIAL_AUTH_HSWAW_SECRET = env("SECRET") -SOCIAL_AUTH_REDIRECT_IS_HTTPS = env("OAUTH_REDIRECT_IS_HTTPS", PROD) +SOCIAL_AUTH_REDIRECT_IS_HTTPS = env("OAUTH_REDIRECT_IS_HTTPS", "true") == "true" SOCIAL_AUTH_JSONFIELD_ENABLED = True