mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 10:22:54 +02:00
41 lines
1.7 KiB
YAML
41 lines
1.7 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: authentik-blueprint-mail
|
|
data:
|
|
mail-oidc.yaml: |
|
|
version: 1
|
|
metadata:
|
|
name: Mail OIDC
|
|
entries:
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
id: stalwart-provider
|
|
state: present
|
|
identifiers:
|
|
name: Stalwart
|
|
attrs:
|
|
name: Stalwart
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
authentication_flow: !Find [authentik_flows.flow, [slug, default-authentication-flow]]
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
client_type: confidential
|
|
client_id: stalwart
|
|
client_secret: !Env [STALWART_OIDC_CLIENT_SECRET, ""]
|
|
redirect_uris:
|
|
- matching_mode: strict
|
|
url: https://mail.rubenhensen.nl/login/callback
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, "authentik Self-signed Certificate"]]
|
|
property_mappings:
|
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-openid]]
|
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-email]]
|
|
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-profile]]
|
|
- model: authentik_core.application
|
|
id: stalwart-app
|
|
state: present
|
|
identifiers:
|
|
slug: stalwart
|
|
attrs:
|
|
name: Stalwart Mail
|
|
provider: !KeyOf stalwart-provider
|
|
meta_launch_url: https://mail.rubenhensen.nl
|