Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DDEFA200B79 for ; Wed, 24 Aug 2016 02:17:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CB706160ABF; Wed, 24 Aug 2016 00:17:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1DD8F160AAD for ; Wed, 24 Aug 2016 02:17:21 +0200 (CEST) Received: (qmail 46990 invoked by uid 500); 24 Aug 2016 00:17:20 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 46663 invoked by uid 99); 24 Aug 2016 00:17:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 00:17:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8B6A42C0156 for ; Wed, 24 Aug 2016 00:17:20 +0000 (UTC) Date: Wed, 24 Aug 2016 00:17:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@brooklyn.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-323) Inconsistent logout behavior for Basic Authentication MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 24 Aug 2016 00:17:38 -0000 [ https://issues.apache.org/jira/browse/BROOKLYN-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433915#comment-15433915 ] ASF GitHub Bot commented on BROOKLYN-323: ----------------------------------------- Github user aledsage commented on the issue: https://github.com/apache/brooklyn-ui/pull/30 @m4rkmckenna @sjcorbett can you please review and merge? > Inconsistent logout behavior for Basic Authentication > ----------------------------------------------------- > > Key: BROOKLYN-323 > URL: https://issues.apache.org/jira/browse/BROOKLYN-323 > Project: Brooklyn > Issue Type: Bug > Affects Versions: 0.9.0, 0.10.0, 0.9.1 > Environment: Firefox, Internet Explorer, Google Chrome > Reporter: Valentin Aitken > Fix For: 0.10.0 > > > Observed behavior: > When clicking logout browser asks for a password. > When entering a password browser asks you sequentially to enter username and password. > How logout should be implemented for Basic Authentication: > http://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication > My explanation for behavior with the current code: > First to clear out how brooklyn-ui is working and what it does. > It polls infinitely the brooklyn api to retrieve status for the applications which are on the dashboard. > To do that each request has to be authenticated. > Logout: > When user click logout, UI fires an ajax call to get a a proper Unauthorized response. > Current response for the logout request contains Unauthorized response which should invalidate credentials. > For Google Chrome it does invalidate the request credentials but it does not reload the DOM (or the webpage) > When user try to type username and password to login back again, it is followed by another username and password prompt. > My explanation for this is that login actually appeared from one of the application status calls rather than the index page and credentials are not populated through the DOM. > Because of this credentials have to be typed for every single request and UI is making status calls infinitely so in other words user have to enter username and password infinitely. > However for Internet Explorer it behaves differently. > It just unauthenticate the one Ajax request and from there nothing happens. Deletion of the session within Internet Explorer doesn't happen and browser stays authenticated. > My idea for solving those problems is to do a full reload of the web page after deauthenticating. > so Brooklyn can have only one javascript authentication cycle. > I will provide a solution which does that in one simple step. > Calling the /logout API call which returns Unauthorized response and redirect to the home page. -- This message was sent by Atlassian JIRA (v6.3.4#6332)