There was an error while loading. Please reload this page.
1 parent 9880c88 commit 1dd5192Copy full SHA for 1dd5192
hello-service/src/main/java/example/service/hello/config/RSocketSecurityConfiguration.java
@@ -36,7 +36,9 @@ public ReactiveUserDetailsService userDetailsService() {
36
public PayloadSocketAcceptorInterceptor rsocketInterceptor(RSocketSecurity rsocket) {
37
rsocket.authorizePayload(authorize ->
38
authorize
39
- .route("hello").permitAll() // Permit access to the "hello" route by unauthenticated users
+ .route("hello").permitAll() // Permit access to the "hello" route by unauthenticated users
40
+ .route("hello.secure.adminonly")
41
+ .hasRole("ADMIN")
42
.anyRequest().authenticated()
43
.anyExchange().permitAll()
44
)
0 commit comments