Skip to content

Commit

Permalink
Clarify RSocket Configuration Docs
Browse files Browse the repository at this point in the history
Closes gh-13718
  • Loading branch information
jzheaux committed Dec 18, 2023
1 parent fc007aa commit 59461d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/modules/ROOT/pages/reactive/integrations/rsocket.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ This configuration enables <<rsocket-authentication-simple,simple authentication

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.
In a Spring Boot application this is done automatically using `RSocketSecurityAutoConfiguration` with the following code.

Spring Boot registers it automatically in `RSocketSecurityAutoConfiguration` when you include {gh-samples-url}/reactive/rsocket/hello-security/build.gradle[the correct dependencies].

Or, if you are not using Boot's auto-configuration, you can register it manually in the following way:

[tabs]
======
Expand Down Expand Up @@ -91,6 +94,8 @@ fun springSecurityRSocketSecurity(interceptor: SecuritySocketAcceptorInterceptor
----
======

To customize the interceptor itself, use `RSocketSecurity` to add <<rsocket-authentication,authentication>> and <<rsocket-authorization,authorization>>.

[[rsocket-authentication]]
== RSocket Authentication

Expand Down

0 comments on commit 59461d9

Please sign in to comment.