keystonemiddleware/keystonemiddleware/tests/unit/auth_token
Colleen Murphy 5f093bf5ee Add validation of app cred access rules
This commit adds a validation step in the auth_token middleware to check
for the presence of an access_rules attribute in an application
credential token and to validate the request against the permissions
granted for that token. During token validation it sends a header to
keystone to indicate that it is capable of validating these access
rules, and not providing this header for a token like this would result
in the token failing validation. This disregards access rules for a
service request made by a service on behalf of a user, such as nova
making a request to glance, because such a request is not under the
control of the user and is not expected to be explicitly allowed in the
access rules.

bp whitelist-extension-for-app-creds

Depends-On: https://review.opendev.org/670377

Change-Id: I185e0541d5df538d74edadf9976b3034a2470c88
2019-07-15 16:05:59 -07:00
..
__init__.py Move unit tests into tests.unit 2015-03-11 17:03:54 -05:00
base.py Identify the keystone service when raising 503 2018-02-20 17:32:41 +01:00
test_auth.py use oslo.log instead of logging 2017-01-13 03:24:18 +00:00
test_auth_token_middleware.py Add validation of app cred access rules 2019-07-15 16:05:59 -07:00
test_base_middleware.py Remove kwargs_to_fetch_token 2018-02-22 02:19:06 +00:00
test_cache.py Fix KeystoneMiddleware memcachepool abstraction 2018-07-18 11:56:43 -07:00
test_config.py No need to compare CONF content 2018-09-07 10:38:14 +08:00
test_connection_pool.py Use oslo_cache in auth_token middleware 2017-12-01 16:36:40 -08:00
test_memcache_crypt.py Fix py3 byte/string error 2017-10-11 10:21:06 -05:00
test_request.py Use keystoneauth 2015-11-23 12:03:00 +11:00
test_user_auth_plugin.py Pass ?allow_expired 2016-12-15 16:15:35 +00:00