Skip to content

Commit

Permalink
doc: since 2.5. security rule cannot access Body
Browse files Browse the repository at this point in the history
see #689
  • Loading branch information
sdelamo committed Aug 13, 2021
1 parent ee03bf1 commit 55120b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/docs/guide/securityRule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ Security rules return a api:security.rules.SecurityRuleResult[]. See the followi

IMPORTANT: If all security rules return `UNKNOWN`, the request will be rejected!


WARNING: Since version 2.5, the Micronaut Framework executes the filters and then it reads the HTTP Request's body.
api:security.filter.SecurityFilter[] evaluates the beans of type api:security.rules.SecurityRule[].
Because of that, api:security.rules.SecurityRule[] cannot rely on HTTP Request's body because the Micronaut Framework has not read the body yet.

0 comments on commit 55120b5

Please sign in to comment.