We are upgrading from Sitecore 8.2 to 9.3.
In our 8.2 solution, there is a patch created with the type SuppressAdfsFormValidation
<sitecore>
<pipelines>
<preprocessRequest>
<processor patch:instead="*[@type='Sitecore.Pipelines.PreprocessRequest.SuppressFormValidation, Sitecore.Kernel']" type="Sample.Pipelines.PreprocessRequest.SuppressAdfsFormValidation, Sample" />
</preprocessRequest>
</pipelines>
</sitecore>
which inherits PreProcessRequestProcessor
and here is the implementation provided below:
public class SuppressAdfsFormValidation : PreprocessRequestProcessor
{
public override void Process(PreprocessRequestArgs args)
{
Assert.ArgumentNotNull(args, "args");
try
{
new SuppressFormValidation().Process(args);
}
catch (HttpRequestValidationException)
{
string rawUrl = args.HttpContext.Request.RawUrl;
if (!rawUrl.Contains("sample item") && !rawUrl.Contains("secure") && !rawUrl.Contains("login"))
{
throw;
}
}
}
}
We could not find the SuppressFormValidation()
in
Sitecore.Kernel.dll(14.0.0.0) -> Sitecore.Pipelines.PreProcessRequestProcessor
Could you please suggest if there is any alternative to implement this feature?