Module actix_web_security::authentication::endpoint_matcher[][src]

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

AllEndpointsMatcher

The AllEndpointsMatcher protects all endpoints. Valid credentials / token are required for all requests.

SpecificUrlsMatcher

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

EndpointMatcher

An EndpointMatcher is an implementation that takes a actix_web::dev::ServiceRequest instance and decides whether the request must be authenticated or not.