function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Can we pass parameters from the SAML response to the Custom Error URL page?

I got the SSO working in my org. Is there a way to pass parameters from the Auth.SamlJitHandler class to the Custom Error URL?

From reading the documentation and other research, all I got was the different error codes (1-42) we get on different scenarios. But, nothing on capturing paramters to use on the error page.

What I'd like to do is capture the username that's coming in through the SAML response and pass that to a custom visualforce page (referenced in the Custom Error URL in the SSO settings) for downstream processing.

More context: This is SSO into the Salesforce Community. The above is to redirect the user to a custom VF page for self registration with the username pre-populated, in an event of a SSO failure.