Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4201618591 for ; Wed, 24 Jun 2015 17:48:05 +0000 (UTC) Received: (qmail 77658 invoked by uid 500); 24 Jun 2015 17:48:05 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 77628 invoked by uid 500); 24 Jun 2015 17:48:05 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 77616 invoked by uid 99); 24 Jun 2015 17:48:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2015 17:48:05 +0000 Date: Wed, 24 Jun 2015 17:48:05 +0000 (UTC) From: "Sumit Mohanty (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-12131) API to return information regarding the current user who is logged in (for SSO) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-12131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sumit Mohanty updated AMBARI-12131: ----------------------------------- Attachment: AMBARI-12131.patch > API to return information regarding the current user who is logged in (for SSO) > ------------------------------------------------------------------------------- > > Key: AMBARI-12131 > URL: https://issues.apache.org/jira/browse/AMBARI-12131 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.0 > Reporter: Sumit Mohanty > Assignee: Sumit Mohanty > Fix For: 2.1.0 > > Attachments: AMBARI-12131.patch > > > This is a scenario where a gateway sits in front of the ambari server host and provides initial authentication and then forwards the message to the ambari-server. As the gateway has logged the user, the FE needs to know the name of the logged on user. > From the UI side we cannot read request headers using javascript, we can only read response headers and write to request headers. In this case we cannot get info about what user is currently logged in. > BE can send the current user name in response header. -- This message was sent by Atlassian JIRA (v6.3.4#6332)