Skip to content
Snippets Groups Projects
Verified Commit 648e34a8 authored by David (Jointech)'s avatar David (Jointech)
Browse files

fix(oidc): add port to generated URL

parent 5e9195a9
No related branches found
No related tags found
No related merge requests found
Pipeline #1877 passed
......@@ -180,6 +180,20 @@ CBA_REST_API_URL = CBA_URL + "/wp-json/wp/v2/"
USE_TZ = True # django-oidc-provider needs timezones in database
LOGIN_URL = "/admin/login/" # Login page OIDC redirects to
OIDC_EXTRA_SCOPE_CLAIMS = "steering.oidc_provider_settings.AuraScopeClaims"
SITE_URL = env.str("AURA_PROTO", default="http") + "://" + env.str("AURA_HOST", default="localhost")
if os.environ.get("STEERING_PORT"):
SITE_URL = (
env.str("AURA_PROTO", default="http")
+ "://"
+ env.str("AURA_HOST", default="localhost")
+ ":"
+ env.str("STEERING_PORT")
)
else:
SITE_URL = (
env.str("AURA_PROTO", default="http")
+ "://"
+ env.str("AURA_HOST", default="localhost")
)
# WSGI_APPLICATION = 'steering.wsgi.application';
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