-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplestype: enhancementA general enhancementA general enhancement
Milestone
Description
Describe the bug
An example of Adding SecuritySocketAcceptorInterceptor
bullet comes with only Java example under RSocket Security.
To Reproduce
- Browse to Adding SecuritySocketAcceptorInterceptor bullet.
- Visually compare the bullet with the previous one Minimal RSocket Security Configuration.
- A coding block of
Adding SecuritySocketAcceptorInterceptor
comes with one Java example while a coding block ofMinimal 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)
}
}
}
Metadata
Metadata
Assignees
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplestype: enhancementA general enhancementA general enhancement