Skip to content

Commit 59461d9

Browse files
committed
Clarify RSocket Configuration Docs
Closes gh-13718
1 parent fc007aa commit 59461d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: docs/modules/ROOT/pages/reactive/integrations/rsocket.adoc

+6-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ This configuration enables <<rsocket-authentication-simple,simple authentication
6262

6363
For Spring Security to work we need to apply `SecuritySocketAcceptorInterceptor` to the `ServerRSocketFactory`.
6464
This is what connects our `PayloadSocketAcceptorInterceptor` we created with the RSocket infrastructure.
65-
In a Spring Boot application this is done automatically using `RSocketSecurityAutoConfiguration` with the following code.
65+
66+
Spring Boot registers it automatically in `RSocketSecurityAutoConfiguration` when you include {gh-samples-url}/reactive/rsocket/hello-security/build.gradle[the correct dependencies].
67+
68+
Or, if you are not using Boot's auto-configuration, you can register it manually in the following way:
6669

6770
[tabs]
6871
======
@@ -91,6 +94,8 @@ fun springSecurityRSocketSecurity(interceptor: SecuritySocketAcceptorInterceptor
9194
----
9295
======
9396

97+
To customize the interceptor itself, use `RSocketSecurity` to add <<rsocket-authentication,authentication>> and <<rsocket-authorization,authorization>>.
98+
9499
[[rsocket-authentication]]
95100
== RSocket Authentication
96101

0 commit comments

Comments
 (0)