1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dex_ynh.git synced 2024-09-03 18:26:22 +02:00
This commit is contained in:
Limezy 2024-01-12 14:57:14 +07:00
parent e5f11cba85
commit 65a74f0f27
3 changed files with 6 additions and 6 deletions

View file

@ -47,8 +47,8 @@ connectors:
# Unfortunately the api is too complex to be used here
# As a consequence we have to setup client as staticClient, which means we will need one Dex instance per client app
staticClients:
- id: __NAME__
- id: __ID__
redirectURIs:
- https://__CALLBACK__
name: __NAME__
name: __ID__
secret: __SECRET__

View file

@ -36,7 +36,7 @@ ram.runtime = "50M"
type = "path"
default = "/dex"
[install.name]
[install.id]
ask.en = "Name of the app you want to connect to the OIDC auth flow"
ask.fr = "Nom de l'application que vous souhaitez connecter au flux d'authentification OIDC"
type = "string"

View file

@ -30,9 +30,9 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -z "${name:-}" ]; then
name=$oidc_name
ynh_app_setting_set --app=$app --key=name --value=$name
if [ -z "${id:-}" ]; then
id=$oidc_name
ynh_app_setting_set --app=$app --key=id --value=$id
ynh_app_setting_delete --app=$app --key=oidc_name
fi