docs/content/integration/openid-connect/clients/wapy-dev/index.md
{{% oidc-common %}}
This example makes the following assumptions:
https://wapy.{{< sitevar name="domain" nojs="example.com" >}}/https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/wapyinsecure_secretSome 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 Wapy.dev 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: 'wapy'
client_name: 'wapydev'
client_secret: '$pbkdf2-sha512$310000$c8p78n7pUMln0jzvd4aK4Q$JNRBzwAo0ek5qKn50cFzzvE9RXV88h1wJn5KGiHrD0YKtZaR/nCb2CJPOsKaPK0hjf.9yHxzQGZziziccp6Yng' # The digest of 'insecure_secret'.
sector_identifier_uri: ''
public: false
redirect_uris:
- 'https://wapy.{{< sitevar name="domain" nojs="example.com" >}}/api/auth/oauth2/callback/authelia'
audience: []
scopes:
- 'openid'
- 'profile'
- 'email'
grant_types:
- 'authorization_code'
response_types:
- 'code'
response_modes:
- 'form_post'
- 'query'
- 'fragment'
authorization_policy: 'two_factor'
token_endpoint_auth_method: 'client_secret_post'
To configure Wapy.dev there is one method, using the Environment Variables.
To configure Wapy.dev to utilize Authelia as an OpenID Connect 1.0 Provider, use the following environment variables:
GENERIC_AUTH_PROVIDER=authelia
GENERIC_AUTH_ISSUER=https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/.well-known/openid-configuration
GENERIC_AUTH_CLIENT_ID=wapy
GENERIC_AUTH_CLIENT_SECRET=insecure_secret
GENERIC_AUTH_SCOPE=openid email profile
services:
wapy:
environment:
GENERIC_AUTH_PROVIDER: 'authelia'
GENERIC_AUTH_ISSUER: 'https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/.well-known/openid-configuration'
GENERIC_AUTH_CLIENT_ID: 'wapy'
GENERIC_AUTH_CLIENT_SECRET: 'insecure_secret'
GENERIC_AUTH_SCOPE: 'openid email profile'