-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
Make typ optional #644
Merged
Merged
Make typ optional #644
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0d95d22
Make typ optional.
dajiaji 0237d31
Update doc.
dajiaji 2f0d410
Update CHANGELOG.
dajiaji 1e35042
Refine parameter order of for backward compatibility.
dajiaji 14af3ff
Remove comment.
dajiaji 75a1018
Add Optional to typ.
dajiaji 854be50
Keep order of JWT header parameter (typ, alg).
dajiaji af294f3
Merge master.
dajiaji a6a1048
Merge branch 'master' into make_typ_optional
dajiaji 1287847
Make typ optional with headers argument.
dajiaji 2e21797
Make typ optional with headers argument.
dajiaji 36e518d
Remove unused log.
dajiaji 43aaaa2
Resolve conflict on CHANGELOG.
dajiaji 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
There are no files selected for viewing
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
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
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
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
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
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
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.
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.
@dajiaji how about instead of adding
typ
as a top level kwarg, we instead allow changing it throughheaders
?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.
Sorry for my late reply.
To my understanding, we can already change "typ" through "headers", but the problem here is that you can't leave "typ" out. To solve this, you mean
headers={"typ":""}
is better thantyp=""
?From my point of view, since there are now several standards for
typ
other thanJWT
(e.g.,dpop+jwt
andscevent+jwt
), it is not a bad idea to be able to changetyp
as a top-level argument likealg
.Anyway, if you think
headers={"typ":""}
is better, I can update my PR for that. No problem. Feel free to request me.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.
Hi @jpadilla can you please provide your feedback on the previous comment. Currently this is a blocker for me, and I'm waiting for this PR to be merged into master. Thank you.
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.
Hi, @jpadilla. I fixed it as you requested. The changes are much less. Could you check and merge it?
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.
@jpadilla I resolved a conflict on CHANGELOG.