mirror of
https://github.com/YunoHost-Apps/dex_ynh.git
synced 2024-09-03 18:26:22 +02:00
Test
This commit is contained in:
parent
e5f11cba85
commit
65a74f0f27
3 changed files with 6 additions and 6 deletions
|
@ -47,8 +47,8 @@ connectors:
|
||||||
# Unfortunately the api is too complex to be used here
|
# 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
|
# As a consequence we have to setup client as staticClient, which means we will need one Dex instance per client app
|
||||||
staticClients:
|
staticClients:
|
||||||
- id: __NAME__
|
- id: __ID__
|
||||||
redirectURIs:
|
redirectURIs:
|
||||||
- https://__CALLBACK__
|
- https://__CALLBACK__
|
||||||
name: __NAME__
|
name: __ID__
|
||||||
secret: __SECRET__
|
secret: __SECRET__
|
||||||
|
|
|
@ -36,7 +36,7 @@ ram.runtime = "50M"
|
||||||
type = "path"
|
type = "path"
|
||||||
default = "/dex"
|
default = "/dex"
|
||||||
|
|
||||||
[install.name]
|
[install.id]
|
||||||
ask.en = "Name of the app you want to connect to the OIDC auth flow"
|
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"
|
ask.fr = "Nom de l'application que vous souhaitez connecter au flux d'authentification OIDC"
|
||||||
type = "string"
|
type = "string"
|
||||||
|
|
|
@ -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
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
if [ -z "${name:-}" ]; then
|
if [ -z "${id:-}" ]; then
|
||||||
name=$oidc_name
|
id=$oidc_name
|
||||||
ynh_app_setting_set --app=$app --key=name --value=$name
|
ynh_app_setting_set --app=$app --key=id --value=$id
|
||||||
ynh_app_setting_delete --app=$app --key=oidc_name
|
ynh_app_setting_delete --app=$app --key=oidc_name
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue