Automatic log on (iFolder)

This example shows how the Proxy portlet can do an automatic log on to an application that uses form login (iFolder in this example).

The proxy gets the page and detects if there are any login form. If such is found it is displayed for the user. When he/she submits the form user login info is stored in the SecretStore of SiteVision. Next time the user uses the proxy against the application, the proxy will try to log on with the login info that are stored in SecretStore. If this succeeds the user will automatically be logged on and if not the proxy will display the login form of the application.

Start URL:

https://192.168.0.220:443/ifolder/iFolderView.aspx

Source type:

XHTML

Scope for link rewriting:

/

Transformation of content (XSLT)

<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:proxy="java:senselogic.sitevision.portlet.proxy.web.Proxy Functions" extension-element-prefixes="proxy">

<xsl:import href="template.xsl"/>

<!-- Detect login form -->
<xsl:template match="/html[//table/@class='loginContent']">
<xsl:call-template name="loginform">
<xsl:with-param name="loginparameters" select="'UserName,Password,LanguageList'"></xsl:with-param>
</xsl:call-template>
</xsl:template>

<!-- Show logout link -->
<xsl:template match="/html/body">
<xsl:call-template name="logout">
<xsl:with-param name="loginurl">/ifolder/Login.aspx</xsl:with-param>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>