mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 08:42:13 +00:00
Docs ServerRSocketFactoryCustomizer->ServerRSocketFactoryProcessor
The documentation incorrectly used ServerRSocketFactoryCustomizer which was renamed to ServerRSocketFactoryProcessor. The docs now use the correct class name Fixes gh-7737
This commit is contained in:
parent
da3f18017d
commit
83d796cf1a
@ -38,12 +38,12 @@ This configuration enables <<rsocket-authentication-basic,basic authentication>>
|
|||||||
|
|
||||||
For Spring Security to work we need to apply `SecuritySocketAcceptorInterceptor` to the `ServerRSocketFactory`.
|
For Spring Security to work we need to apply `SecuritySocketAcceptorInterceptor` to the `ServerRSocketFactory`.
|
||||||
This is what connects our `PayloadSocketAcceptorInterceptor` we created with the RSocket infrastructure.
|
This is what connects our `PayloadSocketAcceptorInterceptor` we created with the RSocket infrastructure.
|
||||||
In a Spring Boot application this can be done using the following code.
|
In a Spring Boot application this is done automatically using `RSocketSecurityAutoConfiguration` with the following code.
|
||||||
|
|
||||||
[source,java]
|
[source,java]
|
||||||
----
|
----
|
||||||
@Bean
|
@Bean
|
||||||
ServerRSocketFactoryCustomizer springSecurityRSocketSecurity(
|
ServerRSocketFactoryProcessor springSecurityRSocketSecurity(
|
||||||
SecuritySocketAcceptorInterceptor interceptor) {
|
SecuritySocketAcceptorInterceptor interceptor) {
|
||||||
return builder -> builder.addSocketAcceptorPlugin(interceptor);
|
return builder -> builder.addSocketAcceptorPlugin(interceptor);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user