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:
Éric Gaspar 2024-01-09 09:37:02 +01:00
parent 7c344e9940
commit 2be5d462b8
8 changed files with 17 additions and 17 deletions

View file

@ -1,5 +1,5 @@
# LDAP connector + Yunohost setup + staticClient as per manifest.json
issuer: https://__DOMAIN____PATH_URL__
issuer: https://__DOMAIN____PATH__
storage:
type: sqlite3
config:
@ -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: __OIDC_NAME__
- id: __NAME__
redirectURIs:
- https://__OIDC_CALLBACK__
name: __OIDC_NAME__
secret: __OIDC_SECRET__
- https://__CALLBACK__
name: __NAME__
secret: __SECRET__

View file

@ -7,4 +7,4 @@
### À utiliser avec précaution :
* La modification de l'URL fonctionnera mais nécessitera certains changements de paramètres dans l'application en utilisant Dex comme fournisseur OIDC.
* Accéder à l'URL ne vous permettra de voir qu'un message : "C'est ici que Dex est installé".
* Accéder à l'URL ne vous permettra de voir qu'un message : "This is where Dex is installed.".

View file

@ -40,18 +40,18 @@ ram.runtime = "50M"
type = "group"
default = "visitors"
[install.OIDC_name]
[install.name]
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"
[install.OIDC_secret]
[install.secret]
ask.en = "OIDC secret of the app you want to connect to the OIDC auth flow"
ask.fr = "Secret OIDC de l'application que vous souhaitez connecter au flux d'authentification OIDC"
type = "string"
[install.OIDC_callback]
[install.callback]
ask.en = "Callback URI required by the app you want to connect to the OIDC auth flow"
ask.fr = "URI de rappel requis par l'application que vous souhaitez connecter au flux d'authentification OIDC"
type = "string"

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES
#=================================================
GO_VERSION="1.19"
GO_VERSION="1.20"
#=================================================
# PERSONAL HELPERS

View file

@ -14,8 +14,8 @@ source /usr/share/yunohost/helpers
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
ynh_script_progression --message="Removing $app service integration..." --weight=1

View file

@ -23,7 +23,7 @@ chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE SYSTEMD
#=================================================
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
@ -40,7 +40,7 @@ yunohost service add $app --description="OpenID Connect Provider" --log="/var/lo
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"

View file

@ -78,7 +78,7 @@ chown $app:$app "$install_dir/config.yaml"
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config

View file

@ -10,6 +10,6 @@ test_format = 1.0
# Default args to use for install
# -------------------------------
args.OIDC_name="Outline"
args.OIDC_secret="secret"
args.OIDC_callback="domain.tld/callback"
args.name = "Outline"
args.secret = "secret"
args.callback = "domain.tld/callback"