Comment 2 for bug 929309

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/4601
Committed: http://github.com/openstack/horizon/commit/e040ad12a0fd551ec28a4c5218a7069b2402805e
Submitter: Jenkins
Branch: master

commit e040ad12a0fd551ec28a4c5218a7069b2402805e
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: Ic90658bff2eabfe630b1f9912cf4a5aa45edf58e