C#


ROSLYN.SECURITY.CA5405 : Do not always skip token validation in delegates (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

By setting critical TokenValidationParameter validation delegates to true, important authentication safeguards are disabled which can lead to tokens from any issuer or expired tokens being wrongly validated.

This check corresponds to Roslyn rule CA5405. For full rule details, see the Microsoft website: CA5405.

Properties

Class Name Do not always skip token validation in delegates (C#)
Significance security
Mnemonic ROSLYN.SECURITY.CA5405
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Do not always skip token validation in delegates (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.