Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions themes/MUG/invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -407,24 +407,25 @@ OAUTHCLIENT_KEYCLOAK_VERIFY_AUD = True # whether to verify the audience tag for
OAUTHCLIENT_KEYCLOAK_AUD = "inveniordm" # probably the same as the client ID
OAUTHCLIENT_KEYCLOAK_USER_INFO_FROM_ENDPOINT = True

_cyverse_keycloak_helper = KeycloakSettingsHelper(
title="Cyverse SSO",
description="Cyverse SSO",
base_url="https://keycloak.cyverse.at",
realm="CyVerse",
app_key="CYVERSE_KEYCLOAK_APP_CREDENTIALS",
)
OAUTHCLIENT_CYVERSE_REALM_URL = _cyverse_keycloak_helper.realm_url
OAUTHCLIENT_CYVERSE_USER_INFO_URL = _cyverse_keycloak_helper.user_info_url
OAUTHCLIENT_CYVERSE_VERIFY_EXP = True
OAUTHCLIENT_CYVERSE_VERIFY_AUD = True
OAUTHCLIENT_CYVERSE_AUD = "inveniordm"
OAUTHCLIENT_CYVERSE_USER_INFO_FROM_ENDPOINT = True
# Cyverse SSO (commented out – uncomment to re-enable)
# _cyverse_keycloak_helper = KeycloakSettingsHelper(
# title="Cyverse SSO",
# description="Cyverse SSO",
# base_url="https://keycloak.cyverse.at",
# realm="CyVerse",
# app_key="CYVERSE_KEYCLOAK_APP_CREDENTIALS",
# )
# OAUTHCLIENT_CYVERSE_REALM_URL = _cyverse_keycloak_helper.realm_url
# OAUTHCLIENT_CYVERSE_USER_INFO_URL = _cyverse_keycloak_helper.user_info_url
# OAUTHCLIENT_CYVERSE_VERIFY_EXP = True
# OAUTHCLIENT_CYVERSE_VERIFY_AUD = True
# OAUTHCLIENT_CYVERSE_AUD = "inveniordm"
# OAUTHCLIENT_CYVERSE_USER_INFO_FROM_ENDPOINT = True


OAUTHCLIENT_REMOTE_APPS = {
"keycloak": _keycloak_helper.remote_app,
"cyverse": _cyverse_keycloak_helper.remote_app,
"keycloak": _keycloak_helper.remote_app
# "cyverse": _cyverse_keycloak_helper.remote_app,
}

## SET THE CREDENTIALS via .env
Expand Down