Integration of SSO and Vaultwarden via Dex

Environment

  • Application: Roundcube 1.7.5~ynh1

  • Yunohost version: 13.0.8 (testing)

  • Hardware: Cloud VPS, x86

Description

I have been trying to understand integration of the various authentication schemes that may be used by applications packaged for Yunohost. I have been advised that Yunohost natively supports LDAP, and that it implements a very simple SSO, but that for SSO to be functional with applications requiring OIDC, it is necessary to install Dex.

I have installed Dex, and observe the following documenting comment:

Apps requiring OIDC automatically add their configuration files in /var/www/dex/config.yaml.d.
(leave the first line empty)

I have been wanting to integrate SSO into Vaultwarden. Vaultwarden supports OIDC, and so I installed it along with Dex.

However, I find to be empty the directory config.yaml.d, and I identify no integration of SSO with Vaultwarden.

I believe it may be possible, if I knew the proper values, for me to populate the fields for OIDC manually in the administrative interface of Vaultwarden. Based on all accounts, however, it seems that doing so should not be necessary.

I would like to understand whether some expected functionality is being missed, and if not, what would be the prospects for manually connecting the applications.

Only a few apps generate their dex conf file (LasuiteDocs, Headplane, ?) during their installation. With others apps, you have to manually add this file.

NB: I created a branch for vaultwarden which adds automatically dex conf file.

It certainly would be helpful if the branch were merged in preparation of an upcoming release of the package.

Meanwhile, are you able to provide guidance for creating a suitable file manually?

I appreciate your help.

Additionally, it seems that the documenting comment is misleading. Perhaps it should be changed, if it is not currently feasible for a greater share of packages to be offering the feature.