Skip to content

Commit 3db0e02

Browse files
authored
Mark SecurityTokenUnableToValidateException as obsolete with guidance (#2060)
1 parent 3d91c43 commit 3db0e02

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Microsoft.IdentityModel.Tokens/Exceptions/SecurityTokenUnableToValidateException.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ namespace Microsoft.IdentityModel.Tokens
1111
/// and when validation errors exist over the security token. This exception is not intended to be used as a signal
1212
/// to refresh keys.
1313
/// </summary>
14+
/// <remarks>
15+
/// This exception type is now considered obsolete and will be removed in the next major version (7.0.0).
16+
/// </remarks>
1417
[Serializable]
18+
[Obsolete(
19+
"This expception is no longer being thrown by Microsoft.IdentityModel and will be removed in the next major " +
20+
"version see: https://aka.ms/SecurityTokenUnableToValidateException",
21+
false)]
22+
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
1523
public class SecurityTokenUnableToValidateException : SecurityTokenInvalidSignatureException
1624
{
1725
[NonSerialized]

0 commit comments

Comments
 (0)