Let administrators skip (or remember) the consent screen for trusted registered OAuth clients

Since v1.0 the sign-in page asks “Authorize access – Allow / Deny” on every OIDC sign-in for every registered client. Per the schema this is intended: even firstParty clients still ask for consent; only Stalwart’s own web applications skip it (checked in the source: ResolvedClient::requires_consent()).

For a small, self-hosted setup this is a lot of friction: our users sign in to our own webmail and to our own identity broker (Keycloak, which brokers to Stalwart for several family apps) – both registered by the administrator, with exact redirect URIs and a client secret. Every sign-in now shows the consent screen for apps the users never chose themselves.

Request – either of:

  1. a per-client setting for administrator-registered clients, e.g. consent: required | skip (like Keycloak’s “Consent required” switch), or
  2. remember a granted consent per user and client (the new “connected applications” list already stores grants) and only ask again when the requested scopes change.

Dynamically registered and metadata-document clients would keep asking every time, as now.

Workaround we use for now: our own (localized) login page sends consent: true only for our own client ids.

Stalwart v1.0.0, Docker, RocksDB.

1 Like