Change IDX10239 and IDX10234 log level to Verbose with opt-in switch#3409
Open
Change IDX10239 and IDX10234 log level to Verbose with opt-in switch#3409
Conversation
Co-authored-by: RojaEnnam <[email protected]>
Co-authored-by: RojaEnnam <[email protected]>
Co-authored-by: RojaEnnam <[email protected]>
Co-authored-by: RojaEnnam <[email protected]>
Copilot
AI
changed the title
[WIP] Change log level for IDX10239 and IDX10234 to verbose
Change IDX10239 and IDX10234 log level to Verbose with opt-in switch
Jan 30, 2026
Contributor
|
@copilot can you also add the relevant tests to verify the behavior of the context switch when it is enabled and when it is disabled. |
Contributor
Author
I've already added comprehensive tests in commit b311a69 that verify the AppContext switch behavior: When switch is disabled (default):
When switch is enabled:
All 6 tests pass successfully. |
RojaEnnam
reviewed
Feb 3, 2026
test/Microsoft.IdentityModel.Tokens.Tests/Validation/SuccessValidationLoggingTests.cs
Outdated
Show resolved
Hide resolved
RojaEnnam
approved these changes
Feb 3, 2026
Co-authored-by: RojaEnnam <[email protected]>
RojaEnnam
approved these changes
Feb 3, 2026
kllysng
approved these changes
Feb 3, 2026
mdchennu
approved these changes
Feb 4, 2026
This file contains hidden or 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
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.
Change IDX10239 and IDX10234 log level to Verbose with opt-in switch
Reduce log noise from success validation messages (IDX10239, IDX10234) during multi-policy validation scenarios.
Description
Success-path validation logs IDX10239 (lifetime valid) and IDX10234 (audience validated) now default to Verbose level instead of Informational. An AppContext switch provides backward compatibility.
Changes:
Switch.Microsoft.IdentityModel.SuccessValidationLogsAsInformationtoAppContextSwitches.csValidatorUtilities.cs: IDX10239 lifetime validationValidators.cs: IDX10234 audience validation (2 locations)Experimental/Validation/Validators.Audience.cs: IDX10234 audience validation (2 locations)Usage:
Restore Informational level logging for backward compatibility:
Default behavior (Verbose) requires no code changes.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.