Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d7298dc
Init library
froosty May 7, 2018
aa44c53
Bring project deps current, setup for dev. Pipenv added.
Mar 5, 2020
8859f0d
Defined dev-packages.
Mar 5, 2020
ee0389c
Add missing ipdb dev dep.
Mar 5, 2020
00b29da
Disabled ipdb since I've never used it and I want to get going here.
Mar 5, 2020
19a662a
Minor correction to import.
Mar 5, 2020
3cc85fd
Matching tokens using == operator is vulnerable to timing attacks. Us…
Mar 5, 2020
a323137
Added support for CSRF in GET, compatible with multipart. Updated REA…
Mar 5, 2020
fdd2b5a
Minor changes to pass build checks.
Mar 5, 2020
b9af6d9
Fix for multipart bug.
Mar 5, 2020
f4d1f61
Merge remote-tracking branch 'origin/multipart-compatible'
Mar 5, 2020
e866860
Avoid incorrect server error if CSRF is missing.
Mar 5, 2020
5812c6e
Increase version to 0.0.2
Mar 5, 2020
58a5b01
Made ready for pypi upload.
Mar 5, 2020
b53555e
Switch to blake3 hashing & bumps.
bitnom Dec 20, 2020
7d9d629
fix hash test
bitnom Dec 20, 2020
dd4ff87
Blake3 hash tokens by default
bitnom Dec 20, 2020
60557fd
Hash is now default
bitnom Dec 20, 2020
440c5a7
Enforce secret_phrase requirement. Bump version.
bitnom Dec 20, 2020
c6a8e1a
Fix aiohttp-session pin
bitnom Dec 22, 2020
ac0d09d
Allow up to aiohttp version 4. Bump this version.
bitnom Dec 25, 2020
ad7fbfe
Make csrf_exempt() a coroutine
bitnom Dec 31, 2020
5d5053f
async decorator wrapper. Revert csrf_exempt to non-async
bitnom Dec 31, 2020
d5ecf46
Improved README.md & Built 0.1.1 for release.
bitnom Dec 31, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# python specific
env*
.cache/
.pytest_cache/
.idea/
*.pyc
*.so
*.pyd
aiohttp_csrf.egg-info
build/*
dist/*
MANIFEST
__pycache__/
*.egg-info/
.coverage
.python-version
htmlcov

# generic files to ignore
*~
*.DS_Store
*.swp
*.out

.tox/
deps/
docs/_build/

idea/
2 changes: 2 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
known_third_party=aiohttp_csrf
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
dist: trusty
language: python
python:
- "3.5"
- "3.6"
install:
- pip install -U setuptools
- pip install -U pip
- pip install -U wheel
- pip install -U tox
script:
- export TOXENV=py`python -c 'import sys; print("".join(map(str, sys.version_info[:2])))'`
- echo "$TOXENV"

- tox
cache:
directories:
- $HOME/.cache/pip
notifications:
email: false
21 changes: 21 additions & 0 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) Ocean S.A. https://ocean.io/

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include README.rst
include LICENSE
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = ">=5.3.5"
pytest-aiohttp = "==0.*,>=0.3.0"
pytest-cov = ">=2.8.1"
tox = ">=3.14.5"
flake8 = ">=3.7.9"
isort = "==4.3.21"
ipdb = "*"

[packages]
aiohttp = "<3.8,>=3.6.2"
aiohttp-session = {extras = ["aioredis"], git = "https://github.com/TheDoctorAI/aiohttp-session", ref = "master"}
blake3 = "==0.*,>=0.1.8"

[requires]
python_version = "3.8"
Loading