docs/content/integration/openid-connect/clients/incus/index.md
{{% oidc-common %}}
This example makes the following assumptions:
https://incus.{{< sitevar name="domain" nojs="example.com" >}}/https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/incusSome 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 Incus 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: 'incus'
client_name: 'Incus'
public: true
authorization_policy: 'two_factor'
require_pkce: false
pkce_challenge_method: ''
redirect_uris:
- 'https://incus.{{< sitevar name="domain" nojs="example.com" >}}/iodc/callback'
audience:
- 'https://incus.{{< sitevar name="domain" nojs="example.com" >}}'
scopes:
- 'openid'
- 'offline_access'
response_types:
- 'code'
grant_types:
- 'authorization_code'
- 'refresh_token'
access_token_signed_response_alg: 'RS256'
userinfo_signed_response_alg: 'none'
token_endpoint_auth_method: 'none'
To configure Incus there is one method, using the CLI.
To configure Incus to utilize Authelia as an OpenID Connect 1.0 Provider, use the following instructions:
https://incus.{{< sitevar name="domain" nojs="example.com" >}}/.incus config edit command:
oidc.issuer to match the Authelia Root URL: incus config set oidc.issuer https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}.oidc.client.id to match the client_id in the Authelia configuration: incus config set oidc.client.id incus.oidc.audience to match the Application Root URL: incus config set oidc.audience https://incus.{{< sitevar name="domain" nojs="example.com" >}}.Login with SSO button when you access Incus Web Interface.Example finalized config which can be viewed using incus config show:
config:
oidc.issuer: https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}
oidc.client.id: incus
oidc.audience: https://incus.{{< sitevar name="domain" nojs="example.com" >}}