sanic-security 1.13.1__tar.gz → 1.13.2__tar.gz

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.
Files changed (21) hide show
  1. {sanic_security-1.13.1/sanic_security.egg-info → sanic_security-1.13.2}/PKG-INFO +2 -2
  2. {sanic_security-1.13.1 → sanic_security-1.13.2}/README.md +1 -1
  3. {sanic_security-1.13.1 → sanic_security-1.13.2}/pyproject.toml +1 -1
  4. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/models.py +1 -0
  5. {sanic_security-1.13.1 → sanic_security-1.13.2/sanic_security.egg-info}/PKG-INFO +2 -2
  6. {sanic_security-1.13.1 → sanic_security-1.13.2}/LICENSE +0 -0
  7. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/__init__.py +0 -0
  8. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/authentication.py +0 -0
  9. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/authorization.py +0 -0
  10. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/configuration.py +0 -0
  11. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/exceptions.py +0 -0
  12. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/test/__init__.py +0 -0
  13. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/test/server.py +0 -0
  14. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/test/tests.py +0 -0
  15. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/utils.py +0 -0
  16. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security/verification.py +0 -0
  17. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security.egg-info/SOURCES.txt +0 -0
  18. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security.egg-info/dependency_links.txt +0 -0
  19. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security.egg-info/requires.txt +0 -0
  20. {sanic_security-1.13.1 → sanic_security-1.13.2}/sanic_security.egg-info/top_level.txt +0 -0
  21. {sanic_security-1.13.1 → sanic_security-1.13.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sanic-security
3
- Version: 1.13.1
3
+ Version: 1.13.2
4
4
  Summary: An async security library for the Sanic framework.
5
5
  Author-email: Aidan Stewart <me@na-stewart.com>
6
6
  Project-URL: Documentation, https://security.na-stewart.com/
@@ -64,7 +64,7 @@ Requires-Dist: cryptography>=3.3.1; extra == "crypto"
64
64
  * [Usage](#usage)
65
65
  * [Authentication](#authentication)
66
66
  * [Captcha](#captcha)
67
- * [Two-Step Verification](#two-step-verification)
67
+ * [Two-step Verification](#two-step-verification)
68
68
  * [Authorization](#authorization)
69
69
  * [Testing](#testing)
70
70
  * [Tortoise](#tortoise)
@@ -33,7 +33,7 @@
33
33
  * [Usage](#usage)
34
34
  * [Authentication](#authentication)
35
35
  * [Captcha](#captcha)
36
- * [Two-Step Verification](#two-step-verification)
36
+ * [Two-step Verification](#two-step-verification)
37
37
  * [Authorization](#authorization)
38
38
  * [Testing](#testing)
39
39
  * [Tortoise](#tortoise)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sanic-security"
7
- version = "1.13.1"
7
+ version = "1.13.2"
8
8
  requires-python = ">=3.8"
9
9
  dependencies = [
10
10
  "tortoise-orm>=0.17.0",
@@ -336,6 +336,7 @@ class Session(BaseModel):
336
336
  "id": self.id,
337
337
  "date_created": str(self.date_created),
338
338
  "expiration_date": str(self.expiration_date),
339
+ "bearer": self.bearer.id if isinstance(self.bearer, Account) else None,
339
340
  "ip": self.ip,
340
341
  },
341
342
  security_config.SECRET,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sanic-security
3
- Version: 1.13.1
3
+ Version: 1.13.2
4
4
  Summary: An async security library for the Sanic framework.
5
5
  Author-email: Aidan Stewart <me@na-stewart.com>
6
6
  Project-URL: Documentation, https://security.na-stewart.com/
@@ -64,7 +64,7 @@ Requires-Dist: cryptography>=3.3.1; extra == "crypto"
64
64
  * [Usage](#usage)
65
65
  * [Authentication](#authentication)
66
66
  * [Captcha](#captcha)
67
- * [Two-Step Verification](#two-step-verification)
67
+ * [Two-step Verification](#two-step-verification)
68
68
  * [Authorization](#authorization)
69
69
  * [Testing](#testing)
70
70
  * [Tortoise](#tortoise)
File without changes