Skip to content

Commit

Permalink
Update SDK to 8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
swollner committed Nov 30, 2023
1 parent 3a61370 commit 45d6c8f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 40 deletions.
15 changes: 3 additions & 12 deletions deploy/docker/compose/src/main/scripts/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,15 @@
# --- relative login path from external authentication service
# REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGIN=/shibboleth

# --- relative logout path from external authentication service
# REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGOUT=/logout

# --- absolut path from external authentication provider
# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL=

# --- relative logout path from external authentication target provider
# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL=

# --- relative logout path from external authentication service
# REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGOUT=/Shibboleth.sso/Logout

# --- should edu-sharing destroy it's session or does this the idp for us
# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION=false

# --- should edu-sharing redirected us to a page after the logout?
# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT=false

# --- the url to redirect to if redirect is true
# REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL=

# --- guest user name
# REPOSITORY_SERVICE_GUEST_USER=

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ my_home_appid="${REPOSITORY_SERVICE_HOME_APPID:-local}"
my_home_auth="${REPOSITORY_SERVICE_HOME_AUTH:-}"
my_home_auth_external="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL:-false}"
my_home_auth_external_login="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN:-$my_path_external/shibboleth}"

my_home_auth_external_logout="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT:-/Shibboleth.sso/Logout}"
my_home_auth_external_logout_destroy_session="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION:-"false"}"
my_home_auth_external_logout_redirect="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT:-"false"}"
my_home_auth_external_logout_redirect_url="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL:-$my_base_external}"

my_home_auth_external_logout="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT:-}"
my_home_auth_external_login_providers_url="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL:-}"
my_home_auth_external_login_provider_target_url="${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL:-}"
my_home_provider="${REPOSITORY_SERVICE_HOME_PROVIDER:-}"
Expand Down Expand Up @@ -458,25 +453,19 @@ xmlstarlet ed -L \
-s '/config/values' -t elem -n 'loginProviderTargetUrl' -v '' \
-d '/config/values/loginProviderTargetUrl[position() != 1]' \
-u '/config/values/loginProviderTargetUrl' -v "${my_home_auth_external_login_provider_target_url}" \
-s '/config/values' -t elem -n 'logout' -v '' \
-d '/config/values/logout[position() != 1]' \
-s '/config/values/logout' -t elem -n 'url' -v '' \
-d '/config/values/logout/url[position() != 1]' \
-u '/config/values/logout/url' -v "${my_home_auth_external_logout}" \
-s '/config/values/logout' -t elem -n 'destroySession' -v '' \
-d '/config/values/logout/destroySession[position() != 1]' \
-u '/config/values/logout/destroySession' -v "${my_home_auth_external_logout_destroy_session}" \
${eduCConf}

if [[ "${my_home_auth_external_logout_redirect}" == "true" ]] ; then
xmlstarlet ed -L \
-s '/config/values/logout' -t elem -n 'ajax' -v '' \
-d '/config/values/logout/ajax[position() != 1]' \
-u '/config/values/logout/ajax' -v 'true' \
-s '/config/values/logout' -t elem -n 'next' -v '' \
-d '/config/values/logout/next[position() != 1]' \
-u '/config/values/logout/next' -v "${my_home_auth_external_logout_redirect_url}" \
${eduCConf}
if [[ -n "${my_home_auth_external_logout}" ]] ; then
xmlstarlet ed -L \
-s '/config/values' -t elem -n 'logout' -v '' \
-d '/config/values/logout[position() != 1]' \
-s '/config/values/logout' -t elem -n 'url' -v '' \
-d '/config/values/logout/url[position() != 1]' \
-u '/config/values/logout/url' -v "${my_home_auth_external_logout}" \
-s '/config/values/logout' -t elem -n 'destroySession' -v '' \
-d '/config/values/logout/destroySession[position() != 1]' \
-u '/config/values/logout/destroySession' -v 'false' \
${eduCConf}
fi
else
sed -i -r 's|<!--\s*SAML||g' tomcat/webapps/edu-sharing/WEB-INF/web.xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ services:
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL: "${REPOSITORY_SERVICE_AUTH_EXTERNAL:-false}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN: "${REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGIN:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT: "${REPOSITORY_SERVICE_AUTH_EXTERNAL_LOGOUT:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_DESTROY_SESSION:-false}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGOUT_REDIRECT_URL:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDERS_URL:-}"
REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL: "${REPOSITORY_SERVICE_HOME_AUTH_EXTERNAL_LOGIN_PROVIDER_TARGET_URL:-}"
REPOSITORY_SERVICE_HOME_PROVIDER: "${REPOSITORY_SERVICE_PROVIDER:-}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ spec:
- name: {{ include "edusharing_repository_search_solr4.name" $ }}
image: {{ include "edusharing_repository_search_solr4.image" $ }}{{ $.Values.image.prefix }}-deploy-docker-repository-build-search-solr4:{{ $.Values.image.tag }}
imagePullPolicy: {{ $.Values.global.image.pullPolicy }}
{{- if default $.Values.global.debug $.Values.debug }}
args: [ "catalina.sh", "jpda", "run" ]
{{- end }}
env:
- name: REPOSITORY_SEARCH_SOLR4_CONFIG
value: | {{ .spec.config.override.application.common | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ set -eu

########################################################################################################################

$(chmod -R g+w "$RS_CACHE/config") || echo "set group permission for $RS_CACHE/config."
$(chmod g+w "$RS_CACHE/data" ) || echo "set group permission for $RS_CACHE/data."
$(chmod -R g+w "$RS_CACHE/config" "$RS_CACHE/data") || echo "set group permission for shared volumes skipped."

########################################################################################################################

Expand Down

0 comments on commit 45d6c8f

Please sign in to comment.