Skip to content

[Draft] JWT v2 fork sync and standards/spec alignment updates - #38

Closed
Marius Storhaug (MariusStorhaug) wants to merge 15 commits into
mainfrom
cautious-tribble
Closed

[Draft] JWT v2 fork sync and standards/spec alignment updates#38
Marius Storhaug (MariusStorhaug) wants to merge 15 commits into
mainfrom
cautious-tribble

Conversation

@MariusStorhaug

Copy link
Copy Markdown
Member

What this PR does

  • Syncs accumulated JWT v2 work from this fork branch into a draft PR
  • Includes function reorganization, tests split/expansion, examples, docs updates, and workflow/version updates
  • Includes New-Jwt/New-JwtSigningKey interface work and output format/type metadata additions

Why

This PR exists to ensure no work remains only in a local fork worktree and to make all current branch changes reviewable in GitHub.

Notes

  • This branch was rebased on main before opening the PR.
  • Existing related JWT v2 work may overlap with other draft PRs; this PR is for preserving and reviewing the exact state from cautious-tribble.

…JWK round-trip, and algorithm-confusion coverage
…, add Base64Url tests

- README.md: Fix MD060 table column alignment; correct 'end to end' to 'end-to-end'
- JwtPayload.ps1: Extract $autoNull variable to shorten lines below 150 chars
- New-Jwt.ps1: Break long if-condition into parenthesized $shouldDispose expression
- Test-Jwt.ps1: Extract $supportedAlgs array; use $allowed for dynamic error message;
  break long lines and fix finally-block indentation
- New-JwtHmac.ps1: Suppress PSUseShouldProcessForStateChangingFunctions, PSUseOutputTypeCorrectly
- Resolve-JwtKey.ps1, Test-JwtClaim.ps1, ConvertFrom-Base64UrlString.ps1, ConvertFrom-JwtKey.ps1,
  Get-JwtClaim.ps1: Suppress PSUseOutputTypeCorrectly (polymorphic return types)
- Jwt.Tests.ps1: Suppress PSAvoidUsingConvertToSecureStringWithPlainText and PSAvoidLongLines;
  add Base64Url helper tests (ConvertFrom-Base64UrlString coverage)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug

Copy link
Copy Markdown
Member Author

Superseded by #26 for Jwt v2.0.0 release consolidation. This fork-sync PR is behind the release branch and would revert newer consolidated release work.

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.

1 participant