From ae97c9120b5bab908a1e8985d112639d23789618 Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:08:47 +0200 Subject: [PATCH] Remove unnecessary files related to updating who.ini --- ckan/docker-entrypoint.d/00_update_who.sh | 15 ----------- ckan/setup/who.ini | 32 ----------------------- 2 files changed, 47 deletions(-) delete mode 100644 ckan/docker-entrypoint.d/00_update_who.sh delete mode 100644 ckan/setup/who.ini diff --git a/ckan/docker-entrypoint.d/00_update_who.sh b/ckan/docker-entrypoint.d/00_update_who.sh deleted file mode 100644 index b214ffc6f..000000000 --- a/ckan/docker-entrypoint.d/00_update_who.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# Update who.ini when exists PROXY_CKAN_LOCATION -echo "[docker-entrypoint.00_update_who] Update who.ini" -if [ -n "$PROXY_CKAN_LOCATION" ] && [ "$PROXY_CKAN_LOCATION" != "/" ]; then - sed -i "s|\${WHO_LOCATION}|$PROXY_CKAN_LOCATION|g" "${APP_DIR}/who.ini"; -else - # Check if the value is exactly "/" - if [ "$PROXY_CKAN_LOCATION" = "/" ]; then - sed -i "s|\${WHO_LOCATION}||g" "${APP_DIR}/who.ini"; - else - # Handle the case when $PROXY_CKAN_LOCATION is empty or not set - sed -i "s|\${WHO_LOCATION}|/|g" "${APP_DIR}/who.ini"; - fi -fi diff --git a/ckan/setup/who.ini b/ckan/setup/who.ini deleted file mode 100644 index 34a753ff5..000000000 --- a/ckan/setup/who.ini +++ /dev/null @@ -1,32 +0,0 @@ -[plugin:auth_tkt] -use=ckan.lib.repoze_plugins.auth_tkt:make_plugin -# If no secret key is defined here, beaker.session.secret will be used -#secret = somesecret - -[plugin:friendlyform] -use=ckan.lib.repoze_plugins.friendly_form:FriendlyFormPlugin -login_form_url=${WHO_LOCATION}/user/login -login_handler_path=/login_generic -logout_handler_path=/user/logout -rememberer_name=auth_tkt -post_login_url=${WHO_LOCATION}/user/logged_in -post_logout_url=${WHO_LOCATION}/user/logged_out -charset=utf-8 - -[general] -request_classifier=repoze.who.classifiers:default_request_classifier -challenge_decider=repoze.who.classifiers:default_challenge_decider - -[identifiers] -plugins = - friendlyform;browser - auth_tkt - -[authenticators] -plugins = - auth_tkt - ckan.lib.authenticator:UsernamePasswordAuthenticator - -[challengers] -plugins = - friendlyform;browser \ No newline at end of file