spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

Consider removing one level of the OIDC Backchannel Logout DSL

Open jzheaux opened this issue 1 year ago • 1 comments

To active OIDC Back-Channel Logout support in the DSL, an application does this:

http
    .oidcLogout((oidc) -> oidc.backChannel(Customizer.withDefaults())
    )

This could be simplified to:

http
   .oidcBackChannelLogout(Customizer.withDefaults())

This would be place the logout DSL at the same level as other logout DSLs:

http
    .logout((logout) -> logout ...)
    .saml2Logout((saml2) -> saml2 ...
    .oidcBackChannelLogout((oidc) -> oidc ...)

Also, it's less nesting which often makes the DSL more navigable.

This would mean deprecating the existing backChannel DSL method with the intent to remove in the next major version.

jzheaux avatar Sep 16 '24 18:09 jzheaux

Hi, I’d like to work on this issue. May I take it on?

alswp006 avatar Oct 01 '24 14:10 alswp006

Hi, @alswp006! Yes, thanks for offering.

jzheaux avatar Oct 28 '24 23:10 jzheaux