Your question
Hi,
I have Stalwart configured with an OIDC directory pointing to my Authentik instance for Bulwark webmail (client_id = bulwark-mail-client). Everything works fine for Bulwark.
Now I want to set up SSO login for the Stalwart admin panel (/admin) via the same Authentik instance. I created a separate OAuth2 provider in Authentik and a new OAuthClient object in Stalwart with clientId = "stalwart-admin-panel".
The problem: when I try to log in to the admin panel, Stalwart redirects to Authentik with client_id=stalwart-webui, but I never created an OAuthClient with that ID. It completely ignores my custom OAuthClient object.
Questions:
- Where does
client_id=stalwart-webuicome from? Is there a built-in client that I’m not aware of? - How is the
OAuthClientobject supposed to be used for WebUI login — does Stalwart actually check it, or is it purely for third-party clients? - What is the correct way to configure OIDC-based login for the admin panel when using an external OIDC provider (Authentik) as the directory backend?
- Or am I approaching this wrong entirely — should the Stalwart WebUI and Bulwark share a single OIDC directory, and the separation between them should be handled on the Authentik side?
Thanks
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on