Skip to content

OAuth2AuthorizationEndpointFilter still get SecurityContext from HttpSessionSecurityContextRepository with expired session(actually expired by SessionInformation) when Configuring Concurrent Session Control #1841

Closed
@Been24

Description

@Been24

Expected Behavior
when Configure Concurrent Session Control in OAuth2AuthorizationServerSecurityFilterChain,OAuth2AuthorizationEndpointFilter should load SecurityContext from HttpSessionSecurityContextRepository exclude session that expired by org.springframework.security.core.session.SessionInformation with EXPIRED_ATTR

Current Behavior
In normal SecurityFilterChain,ConcurrentSessionFilter is going to Expired - abort processing such as doLogout;However Due to OAuth2AuthorizationEndpointFilter is orded before ConcurrentSessionFilter,so it not worked

Context

maybe we need a special SecurityContextRepository to do this in OAuth2AuthorizationServerSecurityFilterChain? or anything other else? hope to receive your help!

Metadata

Metadata

Assignees

Labels

for: stackoverflowA question that's better suited to stackoverflow.com

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions