-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace overload with delegates to read token values.
- Loading branch information
Showing
9 changed files
with
123 additions
and
90 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/Microsoft.IdentityModel.JsonWebTokens/InternalAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -210,4 +211,13 @@ internal delegate ValidationResult<SecurityKey> SignatureValidationDelegate( | |
BaseConfiguration? configuration, | ||
CallContext callContext); | ||
#nullable restore | ||
|
||
/// <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> | ||
internal delegate object ReadTokenPayloadValueDelegate(ref Utf8JsonReader reader, string claimName); | ||
Check failure on line 222 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Build and run unit tests
Check failure on line 222 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Build and run unit tests
Check failure on line 222 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Build and run unit tests
Check failure on line 222 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Build and run unit tests
Check failure on line 222 in src/Microsoft.IdentityModel.Tokens/Delegates.cs GitHub Actions / Build and run unit tests
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
test/Microsoft.IdentityModel.JsonWebTokens.Tests/CustomJsonWebToken.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters