Make stalwart a public PKCE client with account and admin callbacks
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful

This commit is contained in:
2026-10-12 00:43:53 +11:00
parent bfcc362239
commit dc5a24e564
+5 -6
View File
@@ -2,20 +2,19 @@
# https://mail.unkin.net in the mail namespace). Stalwart's OIDC directory
# validates access tokens (JWT, userinfo fallback) and requires aud=stalwart
# plus the openid+email scopes; it maps preferred_username/name from profile.
# client_secret is read from Vault (seeded out of band), never committed.
# public, no secret: the web UI uses PKCE; the strict redirect URIs are the control.
name: stalwart
authorization_flow: default-provider-authorization-implicit-consent
invalidation_flow: default-provider-invalidation-flow
client_type: confidential
client_type: public
client_id: stalwart
launch_url: https://mail.unkin.net/
client_secret_vault:
mount: kv
path: kubernetes/namespace/mail/default/oauth-credentials
scope_mappings:
- goauthentik.io/providers/oauth2/scope-openid
- goauthentik.io/providers/oauth2/scope-email
- goauthentik.io/providers/oauth2/scope-profile
redirect_uris:
- matching_mode: strict
url: https://mail.unkin.net/oauth2/callback
url: https://mail.unkin.net/account/oauth/callback
- matching_mode: strict
url: https://mail.unkin.net/admin/oauth/callback