From c1e979689d2e2366c52aa6b86fe2f1e579ff625b Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 9 Jul 2023 00:22:20 +0200 Subject: [PATCH 1/3] Fix API permission for clients --- scripts/install | 2 +- scripts/upgrade | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 848df74..b3b07a8 100644 --- a/scripts/install +++ b/scripts/install @@ -211,7 +211,7 @@ then ynh_permission_update --permission="main" --add="visitors" fi -ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity/connect/token" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" +ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" ynh_permission_create --permission="admin" --url="/admin" --allowed="$admin" --show_tile="false" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7df7129..68fde7a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,7 +109,9 @@ fi # Create a permission if needed if ! ynh_permission_exists --permission="api"; then - ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity/connect/token" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" + ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" +else + ynh_permission_url --permission="api" --remove_url="/identity/connect/token" --add_url="/identity" fi # If datadir doesn't exist, create it From a1a17785274073ef5abfdd7a18801bf533f09ce1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 9 Jul 2023 09:44:12 +0200 Subject: [PATCH 2/3] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index cc749eb..de4faac 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Manage passwords and other sensitive informations", "fr": "Gérez les mots de passe et autres informations sensibles" }, - "version": "1.28.1~ynh1", + "version": "1.28.1~ynh2", "url": "https://github.com/dani-garcia/vaultwarden", "upstream": { "license": "GPL-3.0-or-later", From f6383cbbef85cb3bc1542154344e057c21870637 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 9 Jul 2023 07:44:16 +0000 Subject: [PATCH 3/3] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2abcf4d..29dcf92 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Alternative implementation of the Bitwarden server API written in Rust and compatible with upstream Bitwarden clients*, perfect for self-hosted deployment where running the official resource-heavy service might not be ideal. -**Shipped version:** 1.28.1~ynh1 +**Shipped version:** 1.28.1~ynh2 **Demo:** https://vault.bitwarden.com/#/register diff --git a/README_fr.md b/README_fr.md index cc33214..3d3ff59 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Alternative implementation of the Bitwarden server API written in Rust and compatible with upstream Bitwarden clients*, perfect for self-hosted deployment where running the official resource-heavy service might not be ideal. -**Version incluse :** 1.28.1~ynh1 +**Version incluse :** 1.28.1~ynh2 **Démo :** https://vault.bitwarden.com/#/register