Note: The authentication logic is slightly changed -
login_required decorator is replaced by a Horizon decorator,
that raises NotAuthorized exception instead redirecting
to login page. Then, all unauthorized requests are now
handled by Horizon Middleware, and performs a check if
the request is from ajax call(then returns error 401),
otherwise - redirects to login page, persisting the
requested page in ?next= variable.
Reviewed: https:/ /review. openstack. org/4601 github. com/openstack/ horizon/ commit/ e040ad12a0fd551 ec28a4c5218a706 9b2402805e
Committed: http://
Submitter: Jenkins
Branch: master
commit e040ad12a0fd551 ec28a4c5218a706 9b2402805e
Author: Tihomir Trifonov <email address hidden>
Date: Mon Feb 27 20:45:57 2012 +0200
Prevents unauth'd view calls from popping up login in modal window.
Fixes bug 929309
Note: The authentication logic is slightly changed -
login_required decorator is replaced by a Horizon decorator,
that raises NotAuthorized exception instead redirecting
to login page. Then, all unauthorized requests are now
handled by Horizon Middleware, and performs a check if
the request is from ajax call(then returns error 401),
otherwise - redirects to login page, persisting the
requested page in ?next= variable.
Change-Id: Ic90658bff2eabf e630b1f9912cf4a 5aa45edf58e