search cancel

Spectrum integration with SAML fails with error 500


Article ID: 252950


Updated On:


CA Spectrum


We configured Spectrum with SSO using an Identity Provider (IdP) that support SAML 2.0.

When we try to access OneClick we are redirected to the IdP for authentication, and after successfully authenticate, when redirected back to OneClick home page, we are just getting an error 500.

The catalina.out show next message when this occurs:

Oct 18, 2022 12:37:33 PM (https-jsse-nio-8080-exec-9) ( - (ERROR) - The request was invalid or malformed
org.apache.cxf.fediz.core.exception.ProcessingException: The request was invalid or malformed
        at org.apache.cxf.fediz.core.processor.SAMLProcessorImpl.validateSamlSSOResponse( ~[fediz-core-1.4.5.jar:1.4.5]
        at ~[sso-agent.jar:?]
        at org.apache.cxf.fediz.core.processor.SAMLProcessorImpl.processRequest( ~[fediz-core-1.4.5.jar:1.4.5]
        at [sso-agent.jar:?]
        at org.apache.cxf.fediz.core.handler.SigninHandler.handleRequest( [fediz-core-1.4.5.jar:1.4.5]
        at com.aprisma.tomcat.authenticator.Saml2FederationAuthenticator.authenticate( [sso-authenticator.jar:?]
        at org.apache.cxf.fediz.tomcat8.FederationAuthenticator.doAuthenticate( [fediz-tomcat8-1.4.5.jar:1.4.5]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke( [catalina.jar:9.0.58]
        at org.apache.cxf.fediz.tomcat8.FederationAuthenticator.invoke( [fediz-tomcat8-1.4.5.jar:1.4.5]
        at org.apache.catalina.core.StandardHostValve.invoke( [catalina.jar:9.0.58]
        at org.apache.catalina.valves.ErrorReportValve.invoke( [catalina.jar:9.0.58]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke( [catalina.jar:9.0.58]
        at org.apache.catalina.core.StandardEngineValve.invoke( [catalina.jar:9.0.58]
        at org.apache.catalina.connector.CoyoteAdapter.service( [catalina.jar:9.0.58]
        at org.apache.coyote.http11.Http11Processor.service( [tomcat-coyote.jar:9.0.58]
        at org.apache.coyote.AbstractProcessorLight.process( [tomcat-coyote.jar:9.0.58]
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process( [tomcat-coyote.jar:9.0.58]
        at$SocketProcessor.doRun( [tomcat-coyote.jar:9.0.58]
        at [tomcat-coyote.jar:9.0.58]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker( [tomcat-util.jar:9.0.58]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$ [tomcat-util.jar:9.0.58]
        at org.apache.tomcat.util.threads.TaskThread$ [tomcat-util.jar:9.0.58]
        at [?:1.8.0_312]
Oct 18, 2022 12:37:33 PM (https-jsse-nio-8080-exec-9) (org.apache.cxf.fediz.core.handler.SigninHandler) - (ERROR) - Federation processing failed: The request was invalid or malformed



Release : 21.2


The reason for this message can vary.

SAML tracer add-on in Firefox or Chrome can help to identify the Request, and the Response to find inconsistencies.

Some times additional debugging might be necessary


A first recommendation is to use SAML tracer extension, and review the SAML request and the response from the IdP.

For example, if in the SAML Response the Audience is next :




But the value in fediz_config for <realm> and <audienceItem> is (with a forward slash after spectrum) the SSO will fail.

The <Audience> URL included in the response must match with fediz_confi.xml <realm> and <audienceItem>. In the above example, a change on the Service Provider URL will be necessary in the IdP.

Another thing where the SAML tracer can help is to confirm that the Signature is included in the Assertion. The IdP can include the signature in the <Assertion> tag, in the <Response> tag or both. Digitally sign the Assertion is a requirement for the IdP following the SAML 2.0 specification, so you should expect to see the <Signature> tag inside the <Assertion> tag.

A final recommendation, is to make sure to use lower case for the Service Provider URL (OneClick URL) in the fediz_config.xml and in the Service Provider definition in the IdP.

Remember that the Response must contain a destination that matches the assertion consumer URL. In any browser, independently if you use upper or lower case to type in the URL in the address bar, as soon as you press Go, the URL will be changed to lower case. If OneClick URL is using upper case in the IdP configuration or in the fediz_config.xml file, the authentication will fail with an error 500.

Additional Information

SAML2 Authentication in DX NetOps Spectrum