1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Set auth_header = false for SSO, because Jellyfin expects custom data in the Authorization header.

This commit is contained in:
Salamandar 2023-09-02 17:58:24 +02:00 committed by Salamandar
parent 3bae4a14bb
commit c66a38f65d
2 changed files with 10 additions and 2 deletions

View file

@ -214,8 +214,12 @@ then
ynh_permission_update --permission="main" --add="visitors"
fi
# auth_header=false is because Jellyfin expects custom data in the Authorization HTTP header
# (notably, for Jellyfin Vue)
ynh_permission_url --permission="main" --auth_header=false
# Only the admin can access the admin panel of the app (if the app has an admin panel)
ynh_permission_create --permission="admin" --allowed=$admin
ynh_permission_create --permission="admin" --auth_header=false --allowed=$admin
#=================================================
# RELOAD NGINX

View file

@ -86,9 +86,13 @@ fi
if ! ynh_permission_exists --permission="admin"; then
# Create the required permissions
ynh_permission_create --permission="admin" --allowed=$admin
ynh_permission_create --permission="admin" --auth_header=false --allowed=$admin
fi
# Update SSO permissions with --auth_header=false (notably, for Jellyfin Vue)
ynh_permission_url --permission="main" --auth_header=false
ynh_permission_url --permission="admin" --auth_header=false
# If discovery key does not exist, create it
if [ -z "$discovery" ]; then
discovery=0