# Example: VaultWarden Single Sign On

- Link: https://www.agilicus.com/anyx-guide/example-vaultwarden-single-sign-on/
- Published: 2026-05-20T00:51:43+00:00
- Author: Don Bowman

We can install VaultWarden such that it uses Agilicus with Single-Sign-On, directly.
This avoids a dual-sign-in. It also allows it to work reliably with the desktop 
app and the extension.

First we create an application. Here I have chosen to run it on the same machine
as the connector on port 4333. I have selected ‘my application participates in authentication’.

I have entirely disabled the Agilicus firewall, meaning that all traffic is allowed.
In practice you might choose to e.g. block /admin to non-signed in users or some
other restriction.

![image](https://www.agilicus.com/www/c5dd451b-image.png)

![image](https://www.agilicus.com/www/660ad7e2-image.png)

![image](https://www.agilicus.com/www/0a1c4129-image.png)

![image](https://www.agilicus.com/www/a3ea14f5-image.png)

![image](https://www.agilicus.com/www/718b9800-image.png)

![image](https://www.agilicus.com/www/e408713c-image.png)

![image](https://www.agilicus.com/www/9e84072f-image.png)

![image](https://www.agilicus.com/www/ce152145-image.png)

Ensure you assign permissions to yourself to test.

We can then run vaultwarden (in this case on the same machine as the connector) 
as:

    ```wp-block-code
    docker run --rm -it \
     -e ADMIN_TOKEN=admin \
     -e DOMAIN=https://vaultwarden.r.XXXX.ca \
     -e SSO_ENABLED=1 \
     -e SSO_ONLY=1 \
     -e SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATION=true \
     -e SSO_SIGNUPS_MATCH_EMAIL=true \
     -e SSO_AUTHORITY=https://auth.r.donbowman.ca \
     -e SSO_CLIENT_ID=vaultwarden-MJYUXXXXX \
     -e SSO_CLIENT_SECRET=ea7EXsgE2zeNXXXXXXXX \
     -e SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATION=true \
     -e SSO_DEBUG_TOKENS=true \
     -v /vw-data:/data/ \
     -p 4333:80 \
     vaultwarden/server:latest
    ```

At this stage if the user navigates to https://vaultwarden.__MYDOMAIN__ they will
see its interface and be able to sign in with their Agilicus user.

Note: you will need to set the SSO_ environment variables to match your needs, see
[https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect](https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect).
