1.0 sign-in page: consent asked on every sign-in, and Stalwart branding shown despite a custom logo

Issue Description

Since upgrading to Stalwart 1.0, I’ve hit two problems on the sign-in page my webmail (Bulwark) sends me to when I click “Sign in with SSO”.

  1. The consent screen appears on every sign-in

Every time I sign in, Stalwart shows the consent screen again and I have to click Allow. Same user, same client, same scopes, every time.

My setup:

Stalwart 1.0 (Enterprise)
An OAuth client for Bulwark (registered, not dynamic), with First-party application turned on
Redirect URI set; grant types: authorization code and refresh token
I also deleted the client and added it back. Same result.

The docs say a first-party client still shows the consent screen, and only installed applications skip it. Asking the first time makes sense. But asking again on every sign-in, for a client I’ve already approved, teaches people to click Allow without reading, which defeats the purpose of the screen. Stalwart already records each grant under Connected Applications, so it seems like it could remember them.

Either of these would solve it:

Remember consent per user and client. Once a client is allowed, don’t ask again unless it requests new scopes or the grant is revoked under Connected Applications. That’s how Google, Microsoft and most identity providers behave.
A per-client “skip consent” option for first-party clients, available only to a superuser.

  1. Stalwart branding on the sign-in page despite a custom logo

I’ve set a custom logo, and it does appear on the sign-in page. But directly under it, the page still shows the Stalwart logo and the heading “Sign in to Stalwart Web Interface”. So my users see my logo and Stalwart’s together, and a heading naming a product they’ve never heard of.

Custom branding is an Enterprise feature, and I’m on Enterprise. When a custom logo is set, I’d expect the sign-in page to show only that logo, with a neutral heading such as “Sign in”, or one using my own name. Ideally the heading would be configurable alongside the logo.

Expected Behavior

Remember OAuth choice so I’m not prompted every time I try to login to webmail.example.com (Bulwark)

Remove Stalwart’s partial logo on the 2nd login page and remove reference of “Stalwart”

Stalwart Version

v1.x

Installation Method

Docker

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

Internal

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

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

Both behaviours you describe match what the docs say Stalwart 1.0 does. I found no setting that changes either one.

1. Consent on every sign-in

The consent page states that consent is not remembered. The screen appears at every authorization for all clients except installed applications, such as the WebUI. Marking an OAuthClient as first party doesn’t change this. The register-client page says first party does not remove consent: the user is still asked at every sign-in, and the request is shown as “Full access to your account”. Deleting and re-adding the client won’t change it.

Installed applications skip consent because they are installed as an Application and recognised through their bundle’s oauth-client.json. That only applies to applications installed on the server. It doesn’t cover an external webmail like Bulwark.

2. Stalwart branding on the sign-in page

The Branding page only describes replacing the logo, either server-wide or per tenant or domain. It doesn’t mention a setting for the sign-in heading or for the Stalwart logo that appears below your custom logo. I couldn’t confirm from the docs whether the second logo or the “Sign in to Stalwart Web Interface” heading can be changed.

Your suggestions are remembered consent per user and client, a superuser-only skip-consent option for first-party clients, and a configurable heading. None of them exist today according to the docs. A community or staff member can follow up on whether they’re planned.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

Hi Beckid,

Asking on every sign-in did teach people to click Allow without reading, so we changed how consent works. Starting with the next weekly Stalwart release, the sign-in form comes first and the consent screen only appears once Stalwart knows who is signing in. If your account already has Bulwark under Connected Applications with the access it’s asking for, Stalwart skips the screen and sends you straight back to Bulwark. It asks again when an app requests access it didn’t have before, when its entry is removed from Connected Applications, or when the app sends prompt=consent. This works for every kind of client, so there’s no extra “skip consent” setting to turn on for your OAuthClient.

One detail for your setup: Bulwark revokes its token when you log out, and that removes it from Connected Applications. After a deliberate sign-out you’ll see the screen once more; while your session keeps refreshing on its own, you won’t. The consent docs will describe the new behaviour once the release is out.

On the branding: “Sign in to Stalwart Web Interface” with the Stalwart icon is the sign-in of the WebUI itself. Only applications installed on the server get their name and icon in that header, and the WebUI is one of them; Bulwark’s flow shows a plain “Sign in”. Your custom logo already replaces the default logo at the top, but the installed application’s own name and icon stay. Hiding them when a custom logo is set, or making the heading configurable, is a fair request; please post it in Feature Ideas so it can be prioritized.

As the admin, I would please suggest you let us make that decision if we want to see the prompt every.single.time. because we do log out of our webmail.

I am the admin for my server for myself and my husband. 2 people. We do NOT need to see the consent prompt every time. It’s 100% unnecessary.

I hope you please reconsider at least making it an option for us admins to decide.

Feature request has been submitted.

Bulwark is requesting the refresh token grant to be revoked, that is why the consent is needed again. Ask Bulwark to change that behaviour and Stalwart will work as you expect.

Got it! Will do. Thank you!