diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-05-21 10:07:19 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-11 13:54:20 +0200 |
commit | 905d58a2a4bb88ed77552e37782eb274d5398ba0 (patch) | |
tree | f4a7af202b1b7c3f769aadf5430bf3b04ca5fd6d /install/ui/src/freeipa/rpc.js | |
parent | 4b2d20a1f95edd2982fbb1901287f2bb2194c9db (diff) | |
download | freeipa-905d58a2a4bb88ed77552e37782eb274d5398ba0.tar.gz freeipa-905d58a2a4bb88ed77552e37782eb274d5398ba0.tar.xz freeipa-905d58a2a4bb88ed77552e37782eb274d5398ba0.zip |
webui: handle back button when unauthenticated
using browser history when unauthenticated causes transition to
the original and/or preceding facets. But nothing works since
all commands fail due to expired credentials in session.
These changes make sure that user stays on login screen if he misses
valid session credentials while he wants to switch to facet which
requires authentication.
https://fedorahosted.org/freeipa/ticket/4353
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/rpc.js')
-rw-r--r-- | install/ui/src/freeipa/rpc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/rpc.js b/install/ui/src/freeipa/rpc.js index 3ad7e8b1b..981b0c783 100644 --- a/install/ui/src/freeipa/rpc.js +++ b/install/ui/src/freeipa/rpc.js @@ -289,7 +289,7 @@ rpc.command = function(spec) { // With trusts, user from trusted domain can use his ticket but he // doesn't have rights for LDAP modify. It will throw internal error. // We should offer form base login. - if (xhr.status === 500 && auth.authenticated_by === 'kerberos' && + if (xhr.status === 500 && auth.current.authenticated_by === 'kerberos' && !IPA.ui.initialized) { error_handler_auth(xhr, text_status, error_thrown); return; |