nova/nova/tests/unit/consoleauth
Nikola Dipanov 2ffcf18d00 consoleauth: Store access_url on token authorization
Related-bug: 1409142

As part of the fix for the related bug - we've added protocol checking
to mitigate MITM attacks, however we base protocol checking on a config
option that is normally only intended for compute hosts.

This is quite user hostile, as it is now important that all nodes
running compute and proxy services have this option in sync.

We can do better than that - we can persist the URL the client is
expected to use, and once we get it back on token validation, we can
make sure that the request is using the intended protocol, mitigating
the MITM injected script attacks.

This patch makes sure that the access_url is persisted with the token -
the follow-up patch makes consoles use that info.

Change-Id: I02a377f54de46536ca35413b615d3298967afc33
2015-04-07 16:54:32 +01:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_consoleauth.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_rpcapi.py consoleauth: Store access_url on token authorization 2015-04-07 16:54:32 +01:00