Bases: ProviderAPIMixin
, BaseAuthProtocol
Build the authentication context from the request auth token.
Used for loading in middleware (holdover from paste.deploy).
Fetch the token data based on the value in the header.
Retrieve the data associated with the token value that was in the header. This can be from PKI, contacting the identity server or whatever is required.
token (str) – The token present in the request header.
kwargs (dict) – Additional keyword arguments may be passed through here to support new features. If an implementation is not aware of how to use these arguments it should ignore them.
exc.InvalidToken – if token is invalid.
The token data
dict
Process request.
If this method returns a value then that value will be used as the response. The next application down the stack will not be executed and process_response will not be called.
Otherwise, the next application down the stack will be executed and process_response will be called with the generated response.
By default this method does not return a value.
request (_request.AuthTokenRequest) – Incoming request
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.