Fix code format in OIDC Logout docs

This commit is contained in:
Junhyunny 2024-08-12 10:50:36 +09:00 committed by Josh Cummings
parent c3a5cf54d4
commit 47723f6d39
2 changed files with 10 additions and 10 deletions

View File

@ -135,7 +135,7 @@ To enable this, you can stand up the Back-Channel Logout endpoint in the DSL lik
====== ======
Java:: Java::
+ +
[source=java,role="primary"] [source,java,role="primary"]
---- ----
@Bean @Bean
public SecurityWebFilterChain filterChain(ServerHttpSecurity http) throws Exception { public SecurityWebFilterChain filterChain(ServerHttpSecurity http) throws Exception {
@ -153,7 +153,7 @@ public SecurityWebFilterChain filterChain(ServerHttpSecurity http) throws Except
Kotlin:: Kotlin::
+ +
[source=kotlin,role="secondary"] [source,kotlin,role="secondary"]
---- ----
@Bean @Bean
open fun filterChain(http: ServerHttpSecurity): SecurityWebFilterChain { open fun filterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
@ -209,7 +209,7 @@ You can achieve this by configuring a custom `ReactiveOidcSessionStrategy`, like
====== ======
Java:: Java::
+ +
[source=java,role="primary"] [source,java,role="primary"]
---- ----
@Component @Component
public final class MySpringDataOidcSessionStrategy implements OidcSessionStrategy { public final class MySpringDataOidcSessionStrategy implements OidcSessionStrategy {
@ -238,7 +238,7 @@ public final class MySpringDataOidcSessionStrategy implements OidcSessionStrateg
Kotlin:: Kotlin::
+ +
[source=kotlin,role="secondary"] [source,kotlin,role="secondary"]
---- ----
@Component @Component
class MySpringDataOidcSessionStrategy: ReactiveOidcSessionStrategy { class MySpringDataOidcSessionStrategy: ReactiveOidcSessionStrategy {

View File

@ -134,7 +134,7 @@ To enable this, you can stand up the Back-Channel Logout endpoint in the DSL lik
====== ======
Java:: Java::
+ +
[source=java,role="primary"] [source,java,role="primary"]
---- ----
@Bean @Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@ -152,7 +152,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
Kotlin:: Kotlin::
+ +
[source=kotlin,role="secondary"] [source,kotlin,role="secondary"]
---- ----
@Bean @Bean
open fun filterChain(http: HttpSecurity): SecurityFilterChain { open fun filterChain(http: HttpSecurity): SecurityFilterChain {
@ -176,7 +176,7 @@ Then, you need a way listen to events published by Spring Security to remove old
====== ======
Java:: Java::
+ +
[source=java,role="primary"] [source,java,role="primary"]
---- ----
@Bean @Bean
public HttpSessionEventPublisher sessionEventPublisher() { public HttpSessionEventPublisher sessionEventPublisher() {
@ -186,7 +186,7 @@ public HttpSessionEventPublisher sessionEventPublisher() {
Kotlin:: Kotlin::
+ +
[source=kotlin,role="secondary"] [source,kotlin,role="secondary"]
---- ----
@Bean @Bean
open fun sessionEventPublisher(): HttpSessionEventPublisher { open fun sessionEventPublisher(): HttpSessionEventPublisher {
@ -235,7 +235,7 @@ You can achieve this by configuring a custom `OidcSessionStrategy`, like so:
====== ======
Java:: Java::
+ +
[source=java,role="primary"] [source,java,role="primary"]
---- ----
@Component @Component
public final class MySpringDataOidcSessionStrategy implements OidcSessionStrategy { public final class MySpringDataOidcSessionStrategy implements OidcSessionStrategy {
@ -264,7 +264,7 @@ public final class MySpringDataOidcSessionStrategy implements OidcSessionStrateg
Kotlin:: Kotlin::
+ +
[source=kotlin,role="secondary"] [source,kotlin,role="secondary"]
---- ----
@Component @Component
class MySpringDataOidcSessionStrategy: OidcSessionStrategy { class MySpringDataOidcSessionStrategy: OidcSessionStrategy {