What is the best approach to implement http authentication (validation) using actix web?
Using the provided examples for a
simple-auth-server I can authenticate a request and create a cookie accordingly.
Now I want to validate the cookie/identity in order to prevent access from certain routes. A
Guard doesn't cut it because I can only retrieve the stored identity using
Identity::from_request(HttpRequest, Payload) and in
RequestHead (guard implementation), there is neither the full request nor its payload.
I can not use
Middleware either because I will only get access to
ServiceRequest but not