-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added internal virtual on TokenHandler #3084
Open
brentschmaltz
wants to merge
1
commit into
dev
Choose a base branch
from
brentsch/ExceptionHandling
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
keegan-caruso
force-pushed
the
brentsch/ExceptionHandling
branch
from
January 10, 2025 20:59
b69fd68
to
75acd6c
Compare
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
jmprieur
reviewed
Jan 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've asked a few questions.
A lot of duplicated code in AadTokenValidationParametersExtension / AadValidationParametersExtension.Internal
src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.cs
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadValidationParametersExtension.Internal.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadValidationParametersExtension.Internal.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadValidationParametersExtension.Internal.cs
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadValidationParametersExtension.Internal.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadValidationParametersExtension.Internal.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadValidationParametersExtension.Internal.cs
Outdated
Show resolved
Hide resolved
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
brentschmaltz
force-pushed
the
brentsch/ExceptionHandling
branch
2 times, most recently
from
January 14, 2025 20:46
3da162e
to
0f6c5a3
Compare
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.Internal.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.Internal.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Validators/AadValidationParametersExtension.Internal.cs
Outdated
Show resolved
Hide resolved
Add AadIssuer with ValidationParameters Added tests to AadIssuerValidator for ValidationParameters
brentschmaltz
force-pushed
the
brentsch/ExceptionHandling
branch
from
January 17, 2025 22:36
0f6c5a3
to
f907b43
Compare
keegan-caruso
approved these changes
Jan 17, 2025
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support to AadIssuerValidator for ValidationParameters.
Removed the parameter BaseConfiguration from delegates as ValidationParameters has ConfigurationManager which should be used to obtain BaseConfiguration when needed.
ValidationParameters.PropertyBag was not instantiated.
Create ValidationParameters.PropertyBag and InstancePropertyBag on demand.
Copy logic from existing AadIssuerValidator, keeping as code the same as much as possible.
Copy logic from existing AadTokenValidationParametersExtension to AadValidationParametersExtension keeping as code the same as much as possible.
This copied code will need to be refactored into common base code.
Move CloudInstanceNameKey to constants file.
Added tests to AadTokenValidationParametersExtensionTests and MicrosoftIdentityIssuerValidatorTest that cover existing tests.