sanic-security 1.16.10__py3-none-any.whl → 1.16.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sanic_security/oauth.py +1 -0
- {sanic_security-1.16.10.dist-info → sanic_security-1.16.11.dist-info}/METADATA +1 -1
- {sanic_security-1.16.10.dist-info → sanic_security-1.16.11.dist-info}/RECORD +6 -6
- {sanic_security-1.16.10.dist-info → sanic_security-1.16.11.dist-info}/WHEEL +1 -1
- {sanic_security-1.16.10.dist-info → sanic_security-1.16.11.dist-info}/licenses/LICENSE +0 -0
- {sanic_security-1.16.10.dist-info → sanic_security-1.16.11.dist-info}/top_level.txt +0 -0
sanic_security/oauth.py
CHANGED
@@ -235,6 +235,7 @@ def initialize_oauth(app: Sanic) -> None:
|
|
235
235
|
async def session_middleware(request, response):
|
236
236
|
if hasattr(request.ctx, "oauth"):
|
237
237
|
if request.ctx.oauth.get("is_refresh"):
|
238
|
+
del request.ctx.oauth["is_refresh"]
|
238
239
|
oauth_encode(response, request.ctx.oauth)
|
239
240
|
elif request.ctx.oauth.get("revoked"):
|
240
241
|
response.delete_cookie(f"{config.SESSION_PREFIX}_oauth")
|
@@ -4,14 +4,14 @@ sanic_security/authorization.py,sha256=Hj1TXWppq7KDH-BQXFNihpZTbaimxnVCbif_Zb5W1
|
|
4
4
|
sanic_security/configuration.py,sha256=HxlKWe1vrQsxNtpoOx86RuHtkZz7Mjo88hMCMhTDvfo,6162
|
5
5
|
sanic_security/exceptions.py,sha256=b_E6wbbtk9ziFfH3jZstp2E01hTm6V1yjTltANYAuMY,5582
|
6
6
|
sanic_security/models.py,sha256=nA4QqmYEMga4ufVTNggJiIuzZtTOYGOquOSlrKMeVdw,22076
|
7
|
-
sanic_security/oauth.py,sha256=
|
7
|
+
sanic_security/oauth.py,sha256=2Tx09J8fgmB6HW6VPyMNUdQYU_5d0rkA4yWOGAPv1Fk,8458
|
8
8
|
sanic_security/utils.py,sha256=WlPOEEQGcfZk-GbPNu6OiysNXAo9mw80TitDV7XxWMc,3762
|
9
9
|
sanic_security/verification.py,sha256=vr_64HLC7TfOwhki7B4Xn3XQJ0V6OoVgh8fR4DISZ44,8085
|
10
10
|
sanic_security/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
sanic_security/test/server.py,sha256=bVltV-AB_CEz9xrnVIft88FU6IYPgOOWuoSHDijeTDs,13717
|
12
12
|
sanic_security/test/tests.py,sha256=YXyn9aJmYg7vCjUuAs8FcI_lGIgzhmMe4AYTzu47_18,22618
|
13
|
-
sanic_security-1.16.
|
14
|
-
sanic_security-1.16.
|
15
|
-
sanic_security-1.16.
|
16
|
-
sanic_security-1.16.
|
17
|
-
sanic_security-1.16.
|
13
|
+
sanic_security-1.16.11.dist-info/licenses/LICENSE,sha256=sXlJs9_mG-dCkPfWsDnuzydJWagS82E2gYtkVH9enHA,1100
|
14
|
+
sanic_security-1.16.11.dist-info/METADATA,sha256=AAd3ccF4kfjeex6p2O6T342kVM2PX2KBuYiW8Ayd4tk,25532
|
15
|
+
sanic_security-1.16.11.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
16
|
+
sanic_security-1.16.11.dist-info/top_level.txt,sha256=ZybkhHXSjfzhmv8XeqLvnNmLmv21Z0oPX6Ep4DJN8b0,15
|
17
|
+
sanic_security-1.16.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|