Skip to content

Invalidate Spring session when user leaves consent screen in Spring authorization server #19216

@pzgadzaj

Description

@pzgadzaj

Expected Behavior
I would like to be able to invalidate Spring session when user leaves Consent screen in spring authorization server.

Current Behavior
This is technically possible however it requires copying code from:

org.springframework.security.oauth2.server.authorization.web.OAuth2AuthorizationEndpointFilter#sendAuthorizationResponse
and
org.springframework.security.oauth2.server.authorization.web.OAuth2AuthorizationEndpointFilter#sendErrorResponse

It should be possible to reuse those existing handlers so it's not required to copy paste the code when customizing

Context
I'm building an authentication flow based on Spring authorization server, where i want user to need to authenticate each time he/she interacts with the authorization server

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions