mirror of
https://github.com/YunoHost-Apps/question2answer_ynh.git
synced 2024-09-03 20:16:07 +02:00
[enh] Pass SSO credentials even in public mode.
This commit is contained in:
parent
d53ecb73dc
commit
c2a58e1494
2 changed files with 6 additions and 2 deletions
|
@ -30,7 +30,8 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|||
# If app is public, add url to SSOWat conf as skipped_uris
|
||||
if [ "$is_public" = "Yes" ];
|
||||
then
|
||||
sudo yunohost app setting $app skipped_uris -v "/"
|
||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
fi
|
||||
|
||||
# Restart services
|
||||
|
|
|
@ -23,7 +23,10 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|||
# If app is public, add url to SSOWat conf as skipped_uris
|
||||
if [ "$is_public" = "Yes" ];
|
||||
then
|
||||
sudo yunohost app setting $app skipped_uris -v "/"
|
||||
# See install script
|
||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
# Remove old settings
|
||||
sudo yunohost app setting $app skipped_uris -d
|
||||
fi
|
||||
|
||||
# Restart services
|
||||
|
|
Loading…
Reference in a new issue