-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: use forgiving jwt authentication #197
Merged
robrap
merged 30 commits into
master
from
robrap/ARCHBOM-1218-drop-use-jwt-cookie-header
Aug 14, 2023
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c3621ed
fix: use forgiving jwt authentication
robrap 0dbad93
fix: Add a default value for ENABLE_FORGIVING_JWT_COOKIES.
feanil e0d9fae
test: Update jwt auth tests due to a code change.
feanil 07ffa5e
style: Fix various pylint violations.
feanil 4fce295
style: Update pylintrc and add an editorconfig from edx-lint.
feanil 5b54d90
test: Update tests to also test forgiving JWT Auth.
feanil 65919e4
test: Fix a test that didn't run correctly.
feanil cbe9c2d
fix: Don't always run the original middleware.
feanil ab7b16d
test: Add testing for forgiving JWT Auth.
feanil 37deb3c
test: Add tests for the redirect middleware.
feanil f38cb1d
fixup! remove indents
robrap d0b2c49
fixup! fix typo
robrap 50092b4
docs: Update docs/decisions/0002-remove-use-jwt-cookie-header.rst
f80ad42
docs: Apply suggestions from code review
58cd8ab
refactor: recombine original/forgiving process_view
robrap bd3af42
refactor: simplify conditional code
robrap 74a45d1
fix: drop warning for missing cookies
robrap a35b32c
feat!: replace custom attribute request_jwt_cookie
robrap 57ad929
refactor: simplify USE_JWT_COOKIE_HEADER case
robrap 1e9f31a
docs: update annotations for request_auth_type_guess
robrap bfd163e
docs: add annotations for jwt_auth_failed
robrap b55d33a
fixup! forgiving jwt custom attribute updates
robrap b982fbd
fixup! refactor JwtAuthentication authenticate
robrap ef040c6
feat: enable JWT cookie testing
robrap a130e34
fixup! switch to jwt_auth_result custom attribute
robrap b84dd92
fixup! fix quality
robrap f85fbf1
fixup! fix quality
robrap 1524623
fixup! switch to new DEPR ticket link
robrap 8394d2b
fixup! update changelog and version
robrap 81afc8f
fixup! update changelog formatting
robrap 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
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.
What's
Only JWT cookie failures will be forgiven.
meant to communicate? It suggests that maybe JWT auth where you use a JWT Authorization header is not forgiven? Is that right?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.
@feanil: You are correct. Also, this comment went away when this attribute was removed in favor of jwt_auth_result, so there is no doc updates needed.