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
AllEndpointsMatcher
protects all endpoints. Valid credentials / token are required for all requests. - Specific
Urls Matcher - The
SpecificUrlsMatcher
can 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
EndpointMatcher
is an implementation that takes aactix_web::dev::ServiceRequest
instance and decides whether the request must be authenticated or not.