horizon/openstack_dashboard/dashboards/project/overview
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
..
templates/overview Reduced code duplication in creating page headers 2015-02-11 10:45:23 +00:00
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
panel.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
tests.py Logout user if he has no valid tokens 2016-04-12 12:32:01 +02:00
urls.py Fix E128 errors in openstack_dashboard/dashboards/project/ 2014-10-16 16:53:52 +09:00
views.py Correct "Uptime" field in csv report file 2015-03-25 16:02:29 +01:00