File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -384,14 +384,28 @@ _keycloak_helper = KeycloakSettingsHelper(
384384 legacy_url_path =False
385385)
386386
387+ _cyverse_keycloak_helper = KeycloakSettingsHelper(
388+ title =" CyVerse" ,
389+ description =" CyVerse" ,
390+ base_url =" https://keycloak.cyverse.at" ,
391+ realm =" CyVerse" ,
392+ app_key =" CYVERSE_KEYCLOAK_APP_CREDENTIALS" ,
393+ legacy_url_path =False,
394+ )
395+
387396OAUTHCLIENT_KEYCLOAK_REALM_URL = _keycloak_helper.realm_url
388397OAUTHCLIENT_KEYCLOAK_USER_INFO_URL = _keycloak_helper.user_info_url
389398OAUTHCLIENT_KEYCLOAK_VERIFY_EXP = True # whether to verify the expiration date of tokens
390399OAUTHCLIENT_KEYCLOAK_VERIFY_AUD = True # whether to verify the audience tag for tokens
391400OAUTHCLIENT_KEYCLOAK_AUD = " inveniordm" # probably the same as the client ID
392401OAUTHCLIENT_KEYCLOAK_USER_INFO_FROM_ENDPOINT = True
393402
394- OAUTHCLIENT_REMOTE_APPS = {" keycloak" : _keycloak_helper.remote_app}
403+ OAUTHCLIENT_REMOTE_APPS = {
404+ " keycloak" : _keycloak_helper.remote_app,
405+ # Enable when needed (see docs: multiple keycloak authentication providers):
406+ # "cyverse": _cyverse_keycloak_helper.remote_app,
407+ }
395408
396409# # SET THE CREDENTIALS via .env
397410# INVENIO_KEYCLOAK_APP_CREDENTIALS={'consumer_key':'<YOUR.CLIENT.ID>','consumer_secret': '<YOUR.CLIENT.CREDENTIALS.SECRET>'}
411+ # INVENIO_CYVERSE_KEYCLOAK_APP_CREDENTIALS={'consumer_key':'<YOUR.CLIENT.ID>','consumer_secret': '<YOUR.CLIENT.CREDENTIALS.SECRET>'}
You can’t perform that action at this time.
0 commit comments