The following are the steps to follow to integrate PubCookie into uPortal 2.4.x:
- Download the lastest version http://www.pubcookie.org/ and install in Apache or IIS as documented in PubCookie.
- In Apache httpd.conf, add the following lines, making the obvious name changes:
Code Block <Location /uPortal/Login> AuthType ISUNetID AuthName myIowaState PubCookieAppID myIowaState require valid-user </Location> <LocationMatch /uPortal/Logout.jsp> AllowOverride Options AuthName myIowaState PubCookieAppID myIowaState AuthType ISUNetID require valid-user PubcookieEndSession clearLogin </LocationMatch>
- in In uPortal/WEB-INF/classes/properties, change the PersonManagerFactory line in portal.properties:
Code Block org.jasig.portal.security.PersonManagerFactory.implementation=org.jasig.portal.security.provider.RemoteUserPersonManager
- in In security.properties, change the root lines to:
Code Block root=org.jasig.portal.security.provider.UnionSecurityContextFactory root.a=org.jasig.portal.security.provider.RemoteUserSecurityContextFactory root.a=org.jasig.portal.security.provider.SimpleSecurityContextFactory
- edit org.jasig.portal.channels.CLogin.Edit webpages/stylesheets/org/jasig/portal/channels/CLogin/html.xsl, replacing the textfield and password field fields to a link like
Code Block <xsl:template match="login-status"> <xsl:if test="$unauthenticated='true'<form action="Login" method="post"> Welcome <a href="https://portal.iastate.edu/uPortal/Authentication"to iState.<br/> If you have a style="color:White;font-weight:bold;font-size:10pt">Login</a>   <!-- NetID, please <a href="http://pboysen.ait.iastate.edu/uPortal/Authentication?userName=admin&password=admin" style="color:White;font-weight:bold;font-size:10pt">Admin</a>   <a href="http://pboysen.ait.iastate.edu/uPortal/Authentication?userName=demo&password=demo" style="color:White;font-weight:bold;font-size:10pt">Demo</a>   <a href="http://pboysen.ait.iastate.edu/uPortal/Authentication?userName=student&password=student" style="color:White;font-weight:bold;font-size:10pt">Student</a> --> </xsl:if> </xsl:template> Login">login</a>. </form>
- Deploy the CLogin/html.xsl
- Restart the portal
When the user clicks on the Login link and has not authenticated, Pubcookie should redirect to the Pubcookie server to
authentication. When authenticated, the user will be redirected back to the Login where the REMOTE_USER variable will
be used to identify the user and the login process will be complete.