@ -1136,7 +1136,34 @@ For additional information about methods that can be overridden, refer to the `G
@@ -1136,7 +1136,34 @@ For additional information about methods that can be overridden, refer to the `G
[[jc-erms]
==== EnableReactiveMethodSecurity
Spring Security supports method security using https://projectreactor.io/docs/core/release/reference/#context[Reactor's Context].
Spring Security supports method security using https://projectreactor.io/docs/core/release/reference/#context[Reactor's Context] which is setup using `ReactiveSecurityContextHolder`.
For example, this demonstrates how to retrieve the currently logged in user's message.
[source,java]
----
Authentication authentication = new TestingAuthenticationToken("user", "password", "ROLE_USER");