Skip to content

Commit

Permalink
Use AppKey in aiohttp 3.9 (#671)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Bull <git@sambull.org>
  • Loading branch information
JCHacking and Dreamsorcerer authored Nov 18, 2023
1 parent ea8560a commit 843e843
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aiohttp_security/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from aiohttp_security.abc import AbstractAuthorizationPolicy, AbstractIdentityPolicy

IDENTITY_KEY = 'aiohttp_security_identity_policy'
AUTZ_KEY = 'aiohttp_security_autz_policy'
IDENTITY_KEY = web.AppKey("IDENTITY_KEY", AbstractIdentityPolicy)
AUTZ_KEY = web.AppKey("AUTZ_KEY", AbstractAuthorizationPolicy)

# _AIP/_AAP are shorthand for Optional[policy] when we retrieve from request.
_AAP = Optional[AbstractAuthorizationPolicy]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-e .
aiohttp==3.8.6
aiohttp==3.9.0
aiohttp-session==2.12.0
async-timeout==4.0.3
coverage==7.3.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def read(f):
return open(os.path.join(os.path.dirname(__file__), f)).read().strip()


install_requires = ['aiohttp>=3.2.0']
install_requires = ["aiohttp>=3.9"]
tests_require = install_requires + ['pytest']
extras_require = {'session': 'aiohttp-session'}

Expand Down

0 comments on commit 843e843

Please sign in to comment.