-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.IdentityModel.Tokens | ||
|
@@ -206,4 +207,22 @@ namespace Microsoft.IdentityModel.Tokens | |
/// <returns>The validated <see cref="SecurityToken"/>.</returns> | ||
internal delegate ValidationResult<SecurityKey> SignatureValidationDelegate(SecurityToken token, ValidationParameters validationParameters, BaseConfiguration? configuration, CallContext? callContext); | ||
#nullable restore | ||
|
||
/// <summary> | ||
/// Definition for ReadTokenHeaderValueDelegate. | ||
/// Called for each claim when token header is being read. | ||
/// </summary> | ||
/// <param name="reader">Reader for the underlying token bytes.</param> | ||
/// <param name="claimName">The name of the claim being read.</param> | ||
/// <returns></returns> | ||
public delegate object ReadTokenHeaderValueDelegate(ref Utf8JsonReader reader, string claimName); | ||
Check failure on line 218 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Wilson GitHub Action Test
Check failure on line 218 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Wilson GitHub Action Test
|
||
|
||
/// <summary> | ||
/// Definition for ReadTokenPayloadValueDelegate. | ||
/// Called for each claim when token payload is being read. | ||
/// </summary> | ||
/// <param name="reader">Reader for the underlying token bytes.</param> | ||
/// <param name="claimName">The name of the claim being read.</param> | ||
/// <returns></returns> | ||
public delegate object ReadTokenPayloadValueDelegate(ref Utf8JsonReader reader, string claimName); | ||
Check failure on line 227 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Wilson GitHub Action Test
Check failure on line 227 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Wilson GitHub Action Test
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -449,6 +449,16 @@ public string NameClaimType | |
/// </summary> | ||
public IDictionary<string, object> PropertyBag { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a delegate that will be called when reading token payload claims. | ||
/// </summary> | ||
public ReadTokenHeaderValueDelegate ReadTokenHeaderValue { get; set; } | ||
Check failure on line 455 in src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs GitHub Actions / Wilson GitHub Action Test
Check failure on line 455 in src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs GitHub Actions / Wilson GitHub Action Test
Check failure on line 455 in src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs GitHub Actions / Wilson GitHub Action Test
Check failure on line 455 in src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs GitHub Actions / Wilson GitHub Action Test
|
||
|
||
/// <summary> | ||
/// Gets or sets a delegate that will be called when reading token payload claims. | ||
/// </summary> | ||
public ReadTokenPayloadValueDelegate ReadTokenPayloadValue { get; set; } | ||
Check failure on line 460 in src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs GitHub Actions / Wilson GitHub Action Test
Check failure on line 460 in src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs GitHub Actions / Wilson GitHub Action Test
|
||
|
||
/// <summary> | ||
/// Gets or sets a boolean to control if configuration required to be refreshed before token validation. | ||
/// </summary> | ||
|
This file was deleted.