From 32963967d49f6c25615faf90998ebdebc274ecb8 Mon Sep 17 00:00:00 2001 From: Misagh Moayyed Date: Sun, 8 Nov 2015 13:53:33 -0700 Subject: [PATCH] updated docs on SSOFilter and ErrorRedirectFilter --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 23e04e7..df8340b 100644 --- a/README.md +++ b/README.md @@ -421,12 +421,42 @@ Places the `Assertion` in a `ThreadLocal` for portions of the application that n ``` + +#### org.jasig.cas.client.util.ErrorRedirectFilter +Filters that redirects to the supplied url based on an exception. Exceptions and the urls are configured via init filter name/param values. + +| Property | Description | Required +|----------|-------|----------- +| `defaultErrorRedirectPage` | Default url to redirect to, in case no erorr matches are found. | Yes +| `java.lang.Exception` | Fully qualified exception name. Its value must be redirection url | No + + +```xml + + CAS Error Redirect Filter + org.jasig.cas.client.util.ErrorRedirectFilter + + java.lang.Exception + /error.jsp + + + defaultErrorRedirectPage + /defaulterror.jsp + + + + CAS Error Redirect Filter + /* + +``` + + ### Client Configuration Using Spring Configuration via Spring IoC will depend heavily on `DelegatingFilterProxy` class. For each filter that will be configured for CAS via Spring, a corresponding `DelegatingFilterProxy` is needed in the web.xml. -As the `SingleSignOutFilter`, `HttpServletRequestWrapperFilter` and `AssertionThreadLocalFilter` have no configuration options, we recommend you just configure them in the `web.xml` +As the `HttpServletRequestWrapperFilter` and `AssertionThreadLocalFilter` have no configuration options, we recommend you just configure them in the `web.xml` ```xml @@ -614,6 +644,10 @@ The `SingleSignOutFilter` can affect character encoding. This becomes most obvio CAS Single Sign Out Filter org.jasig.cas.client.session.SingleSignOutFilter + + casServerUrlPrefix + https://cas.example.com/cas + ... @@ -637,6 +671,10 @@ The `SingleSignOutFilter` can affect character encoding. This becomes most obvio artifactParameterName SAMLart + + casServerUrlPrefix + https://cas.example.com/cas + ... @@ -1079,6 +1117,10 @@ This configuration tested against the sample application that is included with S CAS Single Sign Out Filter org.jasig.cas.client.session.SingleSignOutFilter + + casServerUrlPrefix + https://cas.example.com/cas +