Author: mwringe
Date: 2011-10-03 15:09:59 -0400 (Mon, 03 Oct 2011)
New Revision: 7620
Modified:
portal/trunk/docs/reference-guide/en-US/modules/AuthenticationAndIdentity/SSO.xml
Log:
GTNPORTAL-2147: update SSO documentation on how to use CAS with the latest changes.
Modified:
portal/trunk/docs/reference-guide/en-US/modules/AuthenticationAndIdentity/SSO.xml
===================================================================
---
portal/trunk/docs/reference-guide/en-US/modules/AuthenticationAndIdentity/SSO.xml 2011-10-03
17:13:14 UTC (rev 7619)
+++
portal/trunk/docs/reference-guide/en-US/modules/AuthenticationAndIdentity/SSO.xml 2011-10-03
19:09:59 UTC (rev 7620)
@@ -104,8 +104,8 @@
| local authentication strategy. You might accomplish this by coding a new such
handler and declaring
| edu.someschool.its.cas.MySpecialHandler here, or you might use one of the
handlers provided in the adaptors modules.
+-->
- <bean
-
class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler"
/>
+ <emphasis role="bold"><bean
+
class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler"
/></emphasis>
</list>
</property>
</programlisting>
@@ -143,11 +143,11 @@
| Note: Modify the Plugin Configuration based on the actual information of a GateIn
instance.
| The instance can be anywhere on the internet...Not necessarily on localhost where
CAS is running
+-->
- <bean
class="org.gatein.sso.cas.plugin.AuthenticationPlugin">
+ <emphasis role="bold"><bean
class="org.gatein.sso.cas.plugin.AuthenticationPlugin">
<property
name="gateInHost"><value>localhost</value></property>
<property
name="gateInPort"><value>8080</value></property>
<property
name="gateInContext"><value>portal</value></property>
- </bean>
+ </bean></emphasis>
</list>
</property>
</programlisting>
@@ -194,7 +194,21 @@
</step>
</procedure>
</section>
+ <note>
+ <para>
+ By default on logout the CAS server will display the CAS logout page with a link to
return to the portal. To make the CAS server redirect to the portal page after a logout,
modify the
+
<filename>cas.war/WEB-INF/cas-servlet.xml</filename> to include the follow
line :
+ </para>
+ <programlisting>
+ <bean id="logoutController"
class="org.jasig.cas.web.LogoutController"
+
p:centralAuthenticationService-ref="centralAuthenticationService"
+ p:logoutView="casLogoutView"
+ p:warnCookieGenerator-ref="warnCookieGenerator"
+
p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator"
+ <emphasis
role="bold">p:followServiceRedirects="true"/></emphasis>
+ </programlisting>
+ </note>
</section>
<section
id="sect-Reference_Guide-CAS_Central_Authentication_Service-Setup_the_CAS_client">
@@ -319,13 +333,12 @@
<!--
If casRenewTicket param value of InitiateLoginServlet is: not specified or
false
-->
-
<param-value>http://localhost:8888/cas/login?service=http://localhost:8080/portal/private/classic</param-value>
+
<param-value>http://localhost:8888/cas/login?service=http://localhost:8080/portal/initiatessologin</param-value>
<!--
If casRenewTicket param value of InitiateLoginServlet is : true
-->
<!--
-
<param-value>http://localhost:8888/cas/login?service=http://localhost:8080/portal/private
- /classic&renew=true</param-value>
+
<param-value>http://localhost:8888/cas/login?service=http://localhost:8080/portal/initiatessologin&renew=true</param-value>
-->
</init-param>
</filter>
@@ -337,7 +350,27 @@
<param-name>LOGOUT_URL</param-name>
<param-value>http://localhost:8888/cas/logout</param-value>
</init-param>
- </filter>
+ </filter>
+ <filter>
+ <filter-name>InitiateLoginFilter</filter-name>
+ <filter-class>org.gatein.sso.agent.filter.InitiateLoginFilter</filter-class>
+ <init-param>
+ <param-name>ssoServerUrl</param-name>
+ <param-value>http://localhost:8888/cas</param-value>
+ </init-param>
+ <init-param>
+ <param-name>casRenewTicket</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <param-name>casServiceUrl</param-name>
+ <param-value>http://localhost:8080/portal/initiatessologin</param-value>
+ </init-param>
+ <init-param>
+ <param-name>loginUrl</param-name>
+ <param-value>http://localhost:8080/portal/dologin</param-value>
+ </init-param>
+ </filter>
<!-- Mapping the filters at the very top of the filter chain -->
<filter-mapping>
@@ -348,28 +381,14 @@
<filter-name>CASLogoutFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
+ <filter-mapping>
+ <filter-name>InitiateLoginFilter</filter-name>
+ <url-pattern>/initiatessologin</url-pattern>
+ </filter-mapping>
]]>
</programlisting>
</para>
</listitem>
- <listitem>
- <para>
- Replace the <literal>InitiateLoginServlet</literal> declaration in
<filename>gatein.ear/02portal.war/WEB-INF/web.xml</filename> with:
-<programlisting><servlet>
- <servlet-name>InitiateLoginServlet</servlet-name>
-
<servlet-class>org.gatein.sso.agent.GenericSSOAgent</servlet-class>
- <init-param>
- <param-name>ssoServerUrl</param-name>
- <param-value>http://localhost:8888/cas</param-value>
- </init-param>
- <init-param>
- <param-name>casRenewTicket</param-name>
- <param-value>false</param-value>
- </init-param>
-</servlet>
-</programlisting>
- </para>
- </listitem>
</itemizedlist>
</para>
<para>
Show replies by date