Skip to content
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

New validation model - Public API review #3060

Draft
wants to merge 23 commits into
base: dev
Choose a base branch
from

Conversation

iNinja
Copy link
Contributor

@iNinja iNinja commented Dec 16, 2024

New Validation Model - Public API review

This PR is based off #3056, so some changes will show up here until that one is merged.

  • Made classes and structures that will need to be public in Microsoft.IdentityModel.Tokens public.
  • Added those to PublicAPI.Unshipped.txt for ease of review.

Note: This branch currently won't build because of some issues with the way the public API analyzers work when there is nullability annotations partially implemented. Working on a fix as well as making APIs public in JsonWebTokens and SAML/SAML2.

This PR is not to be merged.

… of GetCurrentStackFrame() and AddCurrentStackFrame()
…fields onto their own files and made the structures read-only.
…once the classes/structures are made public.
…n M.IM.Tokens for all classes not belonging to the new validation path so they can be updated incrementally
…led warnings about public APIs missing nullability annotations in M.IM.JsonWebToken for all classes not belonging to the new validation path so they can be updated incrementally
…bled warnings about public APIs missing nullability annotations in M.IM.Tokens.Saml and M.IM.Tokens.Saml2 for all classes not belonging to the new validation path so they can be updated incrementally
@iNinja iNinja changed the base branch from dev to iinglese/tidy-up-new-validation-model December 17, 2024 15:26
@iNinja iNinja marked this pull request as ready for review December 17, 2024 23:04
@iNinja iNinja requested a review from a team as a code owner December 17, 2024 23:04
@iNinja iNinja changed the base branch from iinglese/tidy-up-new-validation-model to dev December 17, 2024 23:04
@iNinja
Copy link
Contributor Author

iNinja commented Dec 17, 2024

Moved out of draft to trigger validations. Will move back.

@jennyf19
Copy link
Collaborator

@iNinja is the idea to ship the preview off of feature/new-validation-model branch?

@iNinja
Copy link
Contributor Author

iNinja commented Dec 18, 2024

@jennyf19 yes, that would be best from my perspective, as we need to make many classes and methods public that we don't want to expose on dev.

I'll turn this PR back to draft, I moved it out of it to trigger the validations.

@iNinja iNinja marked this pull request as draft December 18, 2024 21:09
Copy link

github-actions bot commented Jan 5, 2025

Summary

Summary
Generated on: 1/5/2025 - 8:07:24 PM
Coverage date: 1/5/2025 - 7:57:36 PM - 1/5/2025 - 8:06:59 PM
Parser: MultiReport (60x Cobertura)
Assemblies: 1
Classes: 7
Files: 2
Line coverage: 80.3% (620 of 772)
Covered lines: 620
Uncovered lines: 152
Coverable lines: 772
Total lines: 483
Branch coverage: 67.8% (228 of 336)
Covered branches: 228
Total branches: 336
Method coverage: Feature is only available for sponsors

Coverage

Microsoft.IdentityModel.JsonWebTokens - 80.3%
Name Line Branch
Microsoft.IdentityModel.JsonWebTokens 80.3% 67.8%
Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities 100%
System.Text.RegularExpressions.Generated 80.3% 67.8%
System.Text.RegularExpressions.Generated 80.3% 67.8%
System.Text.RegularExpressions.Generated.<RegexGenerator_g>F12A1AEDDDFE32BA
DF4DBFF323AF1BCB48B9F9721B7CD3E05F5E034CF225E3DF8__CreateJweRegex_1
79.2% 68%
System.Text.RegularExpressions.Generated.<RegexGenerator_g>F12A1AEDDDFE32BA
DF4DBFF323AF1BCB48B9F9721B7CD3E05F5E034CF225E3DF8__CreateJwsRegex_0
81.4% 67.6%
System.Text.RegularExpressions.Generated.<RegexGenerator_g>F334844C618E00D3
CEC5D3FE0D00CF0141BBEE98635313BB2CB8D3921464CE05A__CreateJweRegex_1
79.2% 68%
System.Text.RegularExpressions.Generated.<RegexGenerator_g>F334844C618E00D3
CEC5D3FE0D00CF0141BBEE98635313BB2CB8D3921464CE05A__CreateJwsRegex_0
81.4% 67.6%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants