Set up actix_web to authenticate request in the middleware and insert UserInfo into the following ServiceRequest.
actix_web
UserInfo
ServiceRequest