Commit 39aa1ddd authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed in the proxy and Django settigns to let the Open ID connect redirects to work properly.

parent d9ecf80a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -134,6 +134,8 @@
        # MSIE 7 and newer should be able to use keepalive
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

    # Required for the Open ID connect redirects to work properly
    RequestHeader set X-Forwarded-Proto 'https' env=HTTPS        

    </VirtualHost>
</IfModule>
+4 −1
Original line number Diff line number Diff line
@@ -263,8 +263,11 @@ if OIDC_RP_CLIENT_ID:
    LOGIN_REDIRECT_URL = '/'
    LOGOUT_REDIRECT_URL = '/'
    LOGIN_REDIRECT_URL_FAILURE = '/'
    #OIDC_AUTHENTICATION_CALLBACK_URL = 'rosetta.local/oidc/callback/'


    # Required for the Open ID connect redirects to work properly
    USE_X_FORWARDED_HOST = True
    SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')