Describe the bug
An example of Adding SecuritySocketAcceptorInterceptor bullet comes with only Java example under RSocket Security.
To Reproduce
1. Browse to Adding SecuritySocketAcceptorInterceptor bullet.
2. Visually compare the bullet with the previous one Minimal RSocket Security Configuration.
3. A coding block of Adding SecuritySocketAcceptorInterceptor comes with one Java example while a coding block of Minimal RSocket Security Configuration comes with both of Java and Kotlin examples.
Expected behavior
A coding block of Adding SecuritySocketAcceptorInterceptor should come with both of Java and Kotlin examples.
Sample
// current example
@Bean
RSocketServerCustomizer springSecurityRSocketSecurity(SecuritySocketAcceptorInterceptor interceptor) {
return (server) -> server.interceptors((registry) -> registry.forSocketAcceptor(interceptor));
}
// purposed example to be added
@Bean
fun springSecurityRSocketSecurity(interceptor: SecuritySocketAcceptorInterceptor): RSocketServerCustomizer {
return RSocketServerCustomizer { server ->
server.interceptors { registry ->
registry.forSocketAcceptor(interceptor)
}
}
}
Comment From: eleftherias
Thank you for submitting this issue @talerngpong! I will review the associated PR #10936 today.
Comment From: eleftherias
Closed via bc2bb8c.