Skip to content

Commit

Permalink
Update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-pimenta-DME committed Oct 23, 2023
1 parent bbbd0e3 commit 397256a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions portal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,12 @@
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
AUTHENTICATION_BACKENDS = (
'portal.middleware.OIDCAB',

)
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'

OIDC_RP_CLIENT_ID = os.environ.get("OIDC_RP_CLIENT_ID", os.environ.get("KEYCLOAK_OIDC_RP_CLIENT_ID", 'client_id'))
OIDC_RP_CLIENT_SECRET = os.environ.get("OIDC_RP_CLIENT_SECRET", os.environ.get("KEYCLOAK_OIDC_RP_CLIENT_SECRET",'client_secret'))
OIDC_RP_CLIENT_ID = os.environ.get("OIDC_RP_CLIENT_ID", 'client_id')
OIDC_RP_CLIENT_SECRET = os.environ.get("OIDC_RP_CLIENT_SECRET", 'client_secret')
OIDC_OP_AUTHORIZATION_ENDPOINT = os.environ.get("OIDC_OP_AUTHORIZATION_ENDPOINT","https://aai.coih.org/oxauth/restv1/authorize")
OIDC_OP_TOKEN_ENDPOINT = os.environ.get("OIDC_OP_TOKEN_ENDPOINT","https://aai.coih.org/oxauth/restv1/token")
OIDC_OP_USER_ENDPOINT = os.environ.get("OIDC_OP_USER_ENDPOINT","https://aai.coih.org/oxauth/restv1/userinfo")
Expand All @@ -160,7 +159,6 @@
OIDC_VERIFY_SSL = not os.environ.get("OIDC_VERIFY_SSL", "True").lower() in ("false", "0", "f")

def provider_logout(request):

redirect_url = 'https://'+ str(AUTHHOST)+ '.' + str(HOSTNAME) + '/oxauth/restv1/end_session?post_logout_redirect_uri=https://'+ str(PORTALHOST)+ '.' + str(HOSTNAME)
return redirect_url

Expand Down

0 comments on commit 397256a

Please sign in to comment.