Okay, so how do I remove everything after the SSO in the following cgi.http_referer?
https://logintest.mysite.com/idp/profile/SAML2/Redirect/SSO;jsessionid=BD14DA537857266CDDE34FC15368386F?execution=e1s1
Okay, I got it to work. I need to use reReplace() to extract out the part that I need so that the cfif work and the session get set.
<cfset cgiReferer = reReplace(#cgi.httP_REFERER#, "[\?;].+", "\1") />
<!--- if shibboleth sent us here, remember the data it gave us--->
<!---<cfif cgi.http_referer eq shibboleth_url>--->
<cfif cgiReferer eq shibboleth_url>
<cfscript>
session.testShibboleth = StructNew();
session.testShibboleth.username=REReplace(http_header.headers.eppn, "@test.com","","ALL");
session.testShibboleth.mail=http_header.headers.eppn;
session.testShibboleth.groups=ArrayToList(REMatch('WEB\.[A-Z.-]+', http_header.headers.member));
session.testShibboleth.isAuthenticated="true";
</cfscript>
</cfif>