-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Python: Promote the insecure cookie query from experimental #16933
Merged
joefarebrother
merged 25 commits into
github:main
from
joefarebrother:python-cookie-concept-promote
Aug 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6f7b2a2
Add cookie flags to cookie write concept, and alter experimental quer…
joefarebrother 2df09f6
Change flag predicates to boolean parameters rather than boolean results
joefarebrother 9ad6c8c
Implement cookie attributes for cases in which a raw header is set
joefarebrother 033dd9f
Promote insecure cookie query
joefarebrother 6a7bdaf
Fix experimental query compilation
joefarebrother 32fbe52
Model cookie attributes for Django and Flask
joefarebrother df5569f
Add documentation
joefarebrother 226e4eb
Use a 3-valued newtype for hasSameSiteAttribute
joefarebrother a73d675
Remove experimental query versions
joefarebrother be87eb5
Add cookie models to each framework
joefarebrother b28d799
Update ConceptsTests and make a fix
joefarebrother 93f70b3
Add unit tests
joefarebrother 4427181
Add change note
joefarebrother db27fd9
Add tests for tornado and twisted
joefarebrother 8f714c6
Code reveiw suggestions. correction in changenote + style in example
joefarebrother d997eee
Code review suggestions - make definitions clearer
joefarebrother 1127b08
Merge branch 'main' into python-cookie-concept-promote
joefarebrother c7f9095
Apply similar changes to httponly
joefarebrother 90e87a1
Factor each framework implementation of the cookie parameters to a co…
joefarebrother ef3bbea
Add check for kwargs in cookie attribute predicates
joefarebrother 68512ee
Remove remaining files from experimental tests
joefarebrother f10d007
Add additional test for kwargs case
joefarebrother 82da8b9
Fix typo
joefarebrother e68ef87
update inline tests for rest_framework tests
joefarebrother 24df548
Review suggestion - Add link to qldoc
joefarebrother 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
Add cookie models to each framework
- Loading branch information
commit be87eb50d494704b901ddcaff53b4a876a72ee1a
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
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.
This code seems to be copied across a bunch of frameworks. Would it make sense to create a
SetCookieCall
abstraction so the frameworks just have to point out where the calls are? It seems all calls toset_cookie
(in any framework) are likely to follow this convention (and if not, it can be overridden by the framework).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.
Seems like it would make sense. Should it be defined in the
Concepts
library?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.
Yes, since it comes from the protocol (something like here) it should probably not be in a specific framework, so if it could be in
Concepts
, that would be nice.