SamlAuthenticationPreprocessor

Hello,

Can anyone please help me understand how to set up my custom SamlAuthenticationPreprocessor. I fail to understand how to deploy my custom preprocessor and when is it called when deployed during the saml auth process. Examples welcome.

Thanks in advance.