-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement
Description
Expected Behavior
When logging in via OAuth 2.1 dance, the consent is only requested once. For more security/compliance-sensitive applications, it would be nice to have a simple way to enforce the consent screen on every login so that the consent is re-granted.
We would like to be able to configure, i.e.:
final RegisteredClient oidcClient = RegisteredClient.withId(UUID.randomUUID().toString())
// ...
// Consent.ALWAYS / Consent.ONCE / Consent.NEVER
.clientSettings(ClientSettings.builder().requireAuthorizationConsent(Consent.ALWAYS).build())
.build();Current Behavior
Once consent is granted to given scopes, the consent screen is not shown.
We are able to configure:
final RegisteredClient oidcClient = RegisteredClient.withId(UUID.randomUUID().toString())
// ...
.clientSettings(ClientSettings.builder().requireAuthorizationConsent(true).build())
.build();Context
We are mostly trying to have a consistent user flow, where the sequence of screens is the same for each login. The additional reason is that we would like the user to re-confirm the consent granted to the third-party app.
Related gh-1363
Metadata
Metadata
Assignees
Labels
status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement