Skip to content

Commit 1dd5192

Browse files
committed
Doing work
1 parent 9880c88 commit 1dd5192

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hello-service/src/main/java/example/service/hello/config/RSocketSecurityConfiguration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public ReactiveUserDetailsService userDetailsService() {
3636
public PayloadSocketAcceptorInterceptor rsocketInterceptor(RSocketSecurity rsocket) {
3737
rsocket.authorizePayload(authorize ->
3838
authorize
39-
.route("hello").permitAll() // Permit access to the "hello" route by unauthenticated users
39+
.route("hello").permitAll() // Permit access to the "hello" route by unauthenticated users
40+
.route("hello.secure.adminonly")
41+
.hasRole("ADMIN")
4042
.anyRequest().authenticated()
4143
.anyExchange().permitAll()
4244
)

0 commit comments

Comments
 (0)