Expand description
The credentials extraction and authentication can be limited to specific endpoints or applied
to all endpoints. A EndpointMatcher must be instantiated. There are two default implementations
available: AllEndpointsMatcher to protect all endpoints and SpecificUrlsMatcher to protect
the URS with the exact matching URLs. Custom ones can be implemented if the defaults are not
applicable for the use-case.
Structs§
- AllEndpoints
Matcher - The
AllEndpointsMatcherprotects all endpoints. Valid credentials / token are required for all requests. - Specific
Urls Matcher - The
SpecificUrlsMatchercan be used to protect endpoints with specific URLs. Endpoints that do not match the given URLS are unprotected. Valid credentials / token are required for all requests.
Traits§
- Endpoint
Matcher - An
EndpointMatcheris an implementation that takes aactix_web::dev::ServiceRequestinstance and decides whether the request must be authenticated or not.