Hi,
There are these problems with your config:
- the rule "from" has invalid syntax - two asterisks are not allowed
- the rule "to" has invalid path, it should be /context/saml/login?idp=http://idp.ssocircle.com
You might possibly also have an issue with the filter declaration - it must be declared before the springSecurityFilterChain in your web.xml. Also, the recommended way to initialize the UrlRewriter includes dispatcher tag for REQUEST and FORWARD.
The following urlrewrite.xml will work (as a very basic example):
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite
PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN"
"http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd">
<urlrewrite>
<rule>
<note>
This rule would take incoming URL /sso/ssocircle and process it as if
/sso?idp=http://idp.ssocircle.com/; users still have clean urls
</note>
<from>/ssocircle</from>
<to last="true" type="redirect">/spring-security-saml2-sample/saml/login?idp=http://idp.ssocircle.com</to>
</rule>
</urlrewrite>
You might want to use UrlRewrite's support in case you'd have more troubles with it.
Cheers, Vladi