HUE-8876 [auth] Fix redirect for is_embeddable when 401

Review Request #14017 - Created June 12, 2019 and submitted

Jean-Francois Desjeans Gauthier
jgauthier, romain
commit 6210728a2ea36d9c0092b43ee7f51e2ed6b163e0
Author: Jean-Francois Desjeans Gauthier <>
Date:   Wed Jun 12 11:50:52 2019 -0700

    HUE-8876 [core] Fix redirect for is_embeddable when 401

:100644 100644 796d5040e5... b3e9060c7c... M	desktop/core/src/desktop/js/onePageViewModel.js
:100644 100644 d8a5437295... 7675c0cc67... M	desktop/core/src/desktop/

When a user changes his own password in 6.x+, django logs out that user.
401 in ajax requests are handled correctly, but is_embedabble requests in onePageViewModel are not.
is_embedabble requests now returns json data on 401 with url to be redirected to and we remove is_embeddable flag.

1) Change your password -> redirect to login
2) Enter credentials -> redirect to previous page

  1. Ship It!
Review request changed

Status: Closed (submitted)