Skip to content

Commit

Permalink
Update Documentation about Kotlin Coroutine Support
Browse files Browse the repository at this point in the history
Closes gh-14646
  • Loading branch information
Chillthrower authored and sjohnr committed Apr 12, 2024
1 parent fd891d8 commit b5c9ba6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docs/modules/ROOT/pages/reactive/authorization/method.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This improves upon `@EnableReactiveMethodSecurity` in a number of ways. `@Enable

1. Uses the simplified `AuthorizationManager` API instead of metadata sources, config attributes, decision managers, and voters.
This simplifies reuse and customization.
2. Supports reactive return types. Note that we are waiting on https://github.com/spring-projects/spring-framework/issues/22462[additional coroutine support from the Spring Framework] before adding coroutine support.
2. Supports reactive return types including Kotlin coroutines.
3. Is built using native Spring AOP, removing abstractions and allowing you to use Spring AOP building blocks to customize
4. Checks for conflicting annotations to ensure an unambiguous security configuration
5. Complies with JSR-250
Expand Down Expand Up @@ -304,13 +304,6 @@ and it will be invoked after the `@PostAuthorize` interceptor.

== EnableReactiveMethodSecurity

[WARNING]
====
`@EnableReactiveMethodSecurity` also supports Kotlin coroutines, though only to a limited degree.
When intercepting coroutines, only the first interceptor participates.
If any other interceptors are present and come after Spring Security's method security interceptor, https://github.com/spring-projects/spring-framework/issues/22462[they will be skipped].
====

[tabs]
======
Java::
Expand Down

0 comments on commit b5c9ba6

Please sign in to comment.