-
-
Notifications
You must be signed in to change notification settings - Fork 27
feat: support for remote JWKS #112
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
Open
jmlow
wants to merge
20
commits into
elysiajs:main
Choose a base branch
from
jmlow:support-typed-remoteJwks
base: main
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
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
71628be
Add strongly-typed support for remote JWKs that doesn't collide with …
jmlow f1bebfe
Clean up formatting
jmlow 5c54235
Improve collision handling between 'secret' and 'remoteJwks' for plug…
jmlow 74f44f2
Fix error handling and 'key' assignment with optional 'secret'
jmlow 956e3d3
Add explicit any for 'data' (causes build failure when absent)
jmlow 480dfd9
Implement security railguards for asymmetric encryption; Clean up typing
jmlow fb9fa87
Improve encryption algorithm handling; Strongly type jwtDecoration
jmlow 6ac5421
Refactor remoteJwks configuration to remoteJwksUrl for cleaner seed; …
jmlow 3df6f48
Revert remoteJwksUrl -> remoteJwks to keep plugin interface simpler f…
jmlow 82333fb
Remove unnecessary 'remoteJwks!' assertion
jmlow 0f69510
Clarify documentation/types for remote verify-only config
jmlow 38b8d28
Fix setIat logic issue
jmlow 53d00d6
Set `iat=true` when missing default or specific config to pass tests …
jmlow c69cae3
Update test to account for conditional 'sign()' decoration
jmlow 7303181
Allow disabling 'iat' when set to 'false'
jmlow 13849fd
Handle JWK with async 'sign()' and alg-aware key
jmlow a761d46
Improve 'setIat' checking; Remove sensitive data from checksum
jmlow ceee3dd
Generalize jwks to support local or remote (but still only asymmetric…
jmlow 3c31c1e
Add test for jwks and secret implementations co-existing in plugin
jmlow 1dff1ec
Revert conditional decorations & throw error in 'sign()' if missing '…
jmlow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.