Skip to content

Commit 843e843

Browse files
Use AppKey in aiohttp 3.9 (#671)
Co-authored-by: Sam Bull <[email protected]>
1 parent ea8560a commit 843e843

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

aiohttp_security/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from aiohttp_security.abc import AbstractAuthorizationPolicy, AbstractIdentityPolicy
77

8-
IDENTITY_KEY = 'aiohttp_security_identity_policy'
9-
AUTZ_KEY = 'aiohttp_security_autz_policy'
8+
IDENTITY_KEY = web.AppKey("IDENTITY_KEY", AbstractIdentityPolicy)
9+
AUTZ_KEY = web.AppKey("AUTZ_KEY", AbstractAuthorizationPolicy)
1010

1111
# _AIP/_AAP are shorthand for Optional[policy] when we retrieve from request.
1212
_AAP = Optional[AbstractAuthorizationPolicy]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-e .
2-
aiohttp==3.8.6
2+
aiohttp==3.9.0
33
aiohttp-session==2.12.0
44
async-timeout==4.0.3
55
coverage==7.3.2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def read(f):
1616
return open(os.path.join(os.path.dirname(__file__), f)).read().strip()
1717

1818

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

0 commit comments

Comments
 (0)