CPub.Web.Authorization.AuthorizationPlug (CPub v0.3.0) View Source

Plug that assigns a CPub.Web.Authorization to the connection if valid access token is found in headers.

Note that routes that require authorization still need to manually check if the authorization assigned in the connection by this plug is valid for the ressource being accessed.