sanic-security 1.16.6__tar.gz → 1.16.7__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. {sanic_security-1.16.6/sanic_security.egg-info → sanic_security-1.16.7}/PKG-INFO +1 -1
  2. {sanic_security-1.16.6 → sanic_security-1.16.7}/pyproject.toml +1 -1
  3. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/authorization.py +1 -1
  4. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/oauth.py +1 -1
  5. {sanic_security-1.16.6 → sanic_security-1.16.7/sanic_security.egg-info}/PKG-INFO +1 -1
  6. {sanic_security-1.16.6 → sanic_security-1.16.7}/LICENSE +0 -0
  7. {sanic_security-1.16.6 → sanic_security-1.16.7}/README.md +0 -0
  8. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/__init__.py +0 -0
  9. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/authentication.py +0 -0
  10. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/configuration.py +0 -0
  11. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/exceptions.py +0 -0
  12. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/models.py +0 -0
  13. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/test/__init__.py +0 -0
  14. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/test/server.py +0 -0
  15. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/test/tests.py +0 -0
  16. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/utils.py +0 -0
  17. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security/verification.py +0 -0
  18. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security.egg-info/SOURCES.txt +0 -0
  19. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security.egg-info/dependency_links.txt +0 -0
  20. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security.egg-info/requires.txt +0 -0
  21. {sanic_security-1.16.6 → sanic_security-1.16.7}/sanic_security.egg-info/top_level.txt +0 -0
  22. {sanic_security-1.16.6 → sanic_security-1.16.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: sanic-security
3
- Version: 1.16.6
3
+ Version: 1.16.7
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/
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sanic-security"
7
- version = "1.16.6"
7
+ version = "1.16.7"
8
8
  requires-python = ">=3.8"
9
9
  dependencies = [
10
10
  "tortoise-orm>=0.17.0",
@@ -140,7 +140,7 @@ async def check_roles(request: Request, *required_roles: str) -> AuthenticationS
140
140
  async def assign_role(
141
141
  name: str,
142
142
  account: Account,
143
- description: str = None,
143
+ description: str,
144
144
  *permissions: str,
145
145
  ) -> Role:
146
146
  """
@@ -149,7 +149,7 @@ async def oauth_revoke(request: Request, client: BaseOAuth2) -> dict:
149
149
  token_info = await oauth_decode(request, client, False)
150
150
  request.ctx.oauth["revoked"] = True
151
151
  with suppress(RevokeTokenNotSupportedError):
152
- await client.revoke_token(token_info.get("access_token"))
152
+ await client.revoke_token(token_info.get("access_token"), "access_token")
153
153
  return token_info
154
154
  except RevokeTokenError as e:
155
155
  raise OAuthError(f"Failed to revoke access token {e.response.text}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: sanic-security
3
- Version: 1.16.6
3
+ Version: 1.16.7
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/
File without changes