horizon/openstack_dashboard/dashboards/project
Vlad Okhrimenko 38dfe3d907 Logout user if he has no valid tokens
Before this patch, if user's rights were changed
or revoked - there would be "Unauthorized" errors
on every page since user had no rights to view them
because he had no valid tokens in that case.

Now user will be logged out if he has no valid tokens.
Set `escalate` to True (for unauthorized-error)
to always log user out.

Also, now horizon.exceptions.NotAuthorized is a part of
UNAUTHORIZED tuple in the exceptions.py, because this type
of exception is re-raised after handling services unauthorized errors.
Looks like it was missing. Now the horizon.exceptions.NotAuthorized
is handled like all NotAuthorized exceptions.

And horizon_middleware.py in process_exception now generates
logout_reason for cases if user is not authorized.

Conflicts:
	openstack_dashboard/dashboards/project/overview/tests.py

Closes-Bug: #1528967
Closes-Bug: #1252341
Closes-Bug: #1407105
Co-Authored-By: Paul Karikh <pkarikh@mirantis.com>
Change-Id: I417cad936ea80c0569c2f442fc87cbd58745757e
(cherry picked from commit 878c703fd0)
2016-04-12 12:32:01 +02:00
..
access_and_security Merge "Fix security group checking action permissions raise error" 2015-04-08 04:41:55 +00:00
containers respect webroot setting in containers table 2015-11-09 13:26:50 +01:00
data_processing Add a conditional judgement to avoid invalid dict index 2015-07-13 12:29:56 +02:00
database_backups Merge "Make values for Database&Backup status be translatable" 2015-02-18 18:40:30 +00:00
databases Refactor/remove obsolete page_header blocks 2015-03-31 17:23:44 +00:00
firewalls Remove 'shared' from Neutron Firewall table 2015-08-31 16:04:33 +00:00
images Backport the WEBROOT fixes for JS and CSS into Kilo 2015-09-10 12:10:28 +00:00
instances Logout user if he has no valid tokens 2016-04-12 12:32:01 +02:00
loadbalancers Adds support to accept IPv6 in VIP Address for LB Pool 2016-01-28 10:50:35 +01:00
network_topology Merge "Backport the WEBROOT fixes for JS and CSS into Kilo" into stable/kilo 2015-12-01 00:41:23 +00:00
networks Make Port Details VNIC type translatable 2016-02-09 10:32:24 +00:00
overview Logout user if he has no valid tokens 2016-04-12 12:32:01 +02:00
routers Neutron Quota Settings Flag Disables Neutron GUI 2015-09-28 11:32:56 +02:00
stacks Fix static file paths in heat topology view 2015-08-27 16:42:19 -06:00
volumes Fixes Volume Backup Restore 2015-11-25 09:55:05 -08:00
vpn Remove unused import 2015-02-21 15:28:11 +08:00
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
dashboard.py Sort the panel's variable in the dashboards.py 2015-04-02 08:50:52 +08:00
models.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00