Skip to content

Allow customization of redirect strategy in CasAuthenticationEntrypoint #14881

Closed
@kakawait

Description

@kakawait

Expected Behavior

Allow more customization or inheritance for CasAuthenticationEntrypoint

Current Behavior

CasAuthenticationEntrypoint has final keyword on

@Override
public final void commence(final HttpServletRequest servletRequest, HttpServletResponse response,
		AuthenticationException authenticationException) throws IOException {
...
}

that prevent developer to change behavior.

If removing final isn't acceptable, otherwise allow changing hardcoded new DefaultRedirectStrategy() inside commence to allow injecting RedirectStrategy inside constructor

Context

Allow developer to apply different strategy without having copying CasAuthenticationEntrypoint, could resolve #3123 for example


I'm totally ok to propose a PR, but I'd like to get validation that is something acceptable

Metadata

Metadata

Labels

in: casAn issue in spring-security-castype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions