I have a custom pre-authentication filter which basically validates and creates a token.
I just want to call this pre-authentication filter only for secured APIs.
For example, I have these two APIs:
GET /api/products(not secure)POST /api/products(secure)
When I use:
<http pattern="/api/products" security="none"/>
My pre-authentication filter is not called, but doing this I turn both APIs unsecure, because both have the same pattern /api/products.
I want to get my pre-authentication filter called only for my secure API, which is POST /api/products.
The question is: how to tell security="none" to differentiate HTTP methods (GET and POST)?