keystone/keystone/tests
Jamie Lennox 1d7c96d6a3 Require auth_context middleware in the pipeline
Keystone has shipped with the auth_context middleware in the pipeline
now for a number of releases. In newer parts of the code we rely on it
for auth information and in others we don't.

A prime example of this is the @protected handlers, if the auth_context
middleware isn't present it rebuilds this information. This is yet
another place where keystone validates a token.

Set a flag on the context to indicate that the request was validated by
auth_context middleware and raise Unauthenticated if not. This
essentially requires deployments to have the middleware enabled and
reduces validation to that point. This will help unify the code that is
behind a protected endpoint as we can rely on the context.

Change-Id: Iceca967e5bf698df13da28d0875c441f2a980e90
2016-07-13 17:14:46 +10:00
..
common Fix keystone.common.wsgi to explicitly use bytes 2016-03-02 01:30:20 -05:00
functional Fix a few spelling mistakes 2016-06-24 02:53:48 +00:00
hacking Fixes hacking's handling of log hints 2016-07-01 19:18:46 +00:00
unit Require auth_context middleware in the pipeline 2016-07-13 17:14:46 +10:00
__init__.py Move existing tests to unit 2015-02-13 15:54:29 -06:00