docs/content/integration/openid-connect/clients/bitwarden/index.md
{{% oidc-common %}}
This example makes the following assumptions:
https://bitwarden.{{< sitevar name="domain" nojs="example.com" >}}/https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/bitwardeninsecure_secret{{< callout context="tip" title="Did you know?" icon="outline/rocket" >}}
This setup assumes you're using the self-hosted version of Bitwarden. If you're using the SaaS version the redirect_uris are either
usually https://sso.bitwarden.com/oidc-signin or if you're in the EU https://sso.bitwarden.eu/oidc-signin.
{{< /callout >}}
Some of the values presented in this guide can automatically be replaced with documentation variables.
{{< sitevar-preferences >}}
The following YAML configuration is an example Authelia client configuration for use with Bitwarden which will operate with the application example:
identity_providers:
oidc:
## The other portions of the mandatory OpenID Connect 1.0 configuration go here.
## See: https://www.authelia.com/c/oidc
clients:
- client_id: 'bitwarden'
client_name: 'Bitwarden'
public: false
authorization_policy: 'two_factor'
require_pkce: true
pkce_challenge_method: 'S256'
redirect_uris:
- 'https://bitwarden.{{< sitevar name="domain" nojs="example.com" >}}/oidc-signin'
scopes:
- 'openid'
- 'email'
- 'profile'
response_modes:
- 'form_post'
response_types:
- 'code'
grant_types:
- 'authorization_code'
access_token_signed_response_alg: 'none'
userinfo_signed_response_alg: 'none'
token_endpoint_auth_method: 'client_secret_post'
To configure Bitwarden there is one method, using the Web GUI.
To configure Bitwarden to utilize Authelia as an OpenID Connect 1.0 Provider, use the following instructions:
Admin Console.Settings.Single sign-on.Allow SSO authentication.OpenID Connect for the type.https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}bitwardeninsecure_secrethttps://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/.well-known/openid-configurationForm POST