You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding @Secured(SecurityRule.IS_ANONYMOUS) and/or @PermitAll to a HTTP handler method (@Post ....) it should allow unchecked and anonymous access to said method, even when passing parameters such as a body!
Actual Behaviour
Requests to endpoints with query parameters, headers or Body are turned down as HttpClientResponseException: Unauthorized (or whichever http client you use)
Expected Behavior
When adding
@Secured(SecurityRule.IS_ANONYMOUS)
and/or@PermitAll
to a HTTP handler method (@Post
....) it should allow unchecked and anonymous access to said method, even when passing parameters such as a body!Actual Behaviour
Requests to endpoints with query parameters, headers or Body are turned down as
HttpClientResponseException: Unauthorized
(or whichever http client you use)I have a MVCE; https://github.com/nbrugger-tgm/micronaut-reproductions/tree/main/permit-all-body-issue
Steps To Reproduce
cd micronaut-reproductions/permit-all-body-issue
./gradle test
Environment Information
Example Application
https://github.com/nbrugger-tgm/micronaut-reproductions/tree/main/permit-all-body-issue
Version
4.x.x
The text was updated successfully, but these errors were encountered: