Remove unnecessary files related to updating who.ini

This commit is contained in:
mjanez 2024-09-19 15:08:47 +02:00
parent 916d40542e
commit ae97c9120b
No known key found for this signature in database
GPG Key ID: 7A62FDE17C5A4929
2 changed files with 0 additions and 47 deletions

View File

@ -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

View File

@ -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