keystone.middleware.auth.
AuthContextMiddleware
(app)[source]¶Bases: keystone.common.provider_api.ProviderAPIMixin
, keystonemiddleware.auth_token.BaseAuthProtocol
Build the authentication context from the request auth token.
factory
(global_config, **local_config)[source]¶Used for loading in middleware (holdover from paste.deploy).
fetch_token
(token, **kwargs)[source]¶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.
Parameters: |
|
---|---|
Raises: | exc.InvalidToken – if token is invalid. |
Returns: | The token data |
Return type: | dict |
kwargs_to_fetch_token
= True¶process_request
(request)[source]¶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.
Parameters: | 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.