GSA Authentication - Finding current logged in user

3 views
Skip to first unread message

Pedro Jacinto

unread,
Feb 11, 2010, 12:38:50 PM2/11/10
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi,

I have a GSA 6 configured to serve both public and secure results. I'm
using basic / ntlm and forms authentication for authentication.

Is it possible to know the username of the current logged in user
after he authenticates to the appliance ?

Alternatively, if it's not possible to do that with basic/ ntlm and
forms, can it be done using SAML ?


GSA 6 comes with the code below on the default stylesheet, in which it
references a /GSP/LOGIN element (which appears to do what I need), but
I can't find any reference to that element on the documentation... and
when viewing the XML results that element isn't there...

<!--
**********************************************************************
Shown sign-in/sign-out links at the top of the /search page

**********************************************************************
-->

<xsl:template name="sign_in">
<xsl:call-template name="search_home_script"/>
<div class="personalization" width="100%" align="right">
<xsl:text disable-output-escaping='yes'>&lt;a
href='javascript:getHomeUrl();'&gt;My Alerts&lt;/a&gt;</xsl:text>
</div>
</xsl:template>

<xsl:template name="signed_in">
<xsl:call-template name="search_home_script"/>
<div class="personalization" width="100%" align="right">
<b><xsl:value-of select="/GSP/LOGIN" /></b> |
<xsl:text disable-output-escaping='yes'>&lt;a
href='javascript:getHomeUrl();'&gt;My Alerts&lt;/a&gt;</xsl:text> |
<xsl:text disable-output-escaping='yes'>&lt;a href='/uam?
action=Logout'&gt;Sign Out&lt;/a&gt;</xsl:text>
</div>
</xsl:template>

<xsl:template name="personalization">
<xsl:if test="$show_alerts2 = '1'">
<xsl:choose>
<xsl:when test="/GSP/PERSONALIZATION">
<xsl:choose>
<xsl:when test="/GSP/LOGIN"><xsl:call-template name="signed_in"/
></xsl:when>
<xsl:otherwise><xsl:call-template name="sign_in" /></
xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:template>


Thanks in advance,
Pedro Jacinto

Denis Cook

unread,
Feb 2, 2015, 3:15:02 PM2/2/15
to Google-Search-...@googlegroups.com
Hi Pedro

Did you manage to implement this to your front end stylesheet?

thanks
DC
Reply all
Reply to author
Forward
0 new messages