Back to Authelia

Wapy.dev

docs/content/integration/openid-connect/clients/wapy-dev/index.md

4.39.193.3 KB
Original Source

Tested Versions

{{% oidc-common %}}

Assumptions

This example makes the following assumptions:

  • Application Root URL: https://wapy.{{< sitevar name="domain" nojs="example.com" >}}/
  • Authelia Root URL: https://{{< sitevar name="subdomain-authelia" nojs="auth" >}}.{{< sitevar name="domain" nojs="example.com" >}}/
  • Client ID: wapy
  • Client Secret: insecure_secret

Some of the values presented in this guide can automatically be replaced with documentation variables.

{{< sitevar-preferences >}}

Configuration

Authelia

The following YAML configuration is an example Authelia client configuration for use with Wapy.dev which will operate with the application example:

yaml
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'

Application

To configure Wapy.dev there is one method, using the Environment Variables.

Environment Variables

To configure Wapy.dev to utilize Authelia as an OpenID Connect 1.0 Provider, use the following environment variables:

Standard
shell
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
Docker Compose
yaml
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'

See Also