sanic-security 1.16.6__py3-none-any.whl → 1.16.7__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  """
sanic_security/oauth.py CHANGED
@@ -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/
@@ -1,17 +1,17 @@
1
1
  sanic_security/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  sanic_security/authentication.py,sha256=APs_YkwQCAEKyQo76ukKazQLGcm9fYrve6CUNxK2yKU,13201
3
- sanic_security/authorization.py,sha256=Hj1TXWppq7KDH-BQXFNihpZTbaimxnVCbif_Zb5W1bA,8232
3
+ sanic_security/authorization.py,sha256=5-UpK4J0rGUcqxNLqTWjX3L_wrcOYNnsIaeOXQNkNdY,8225
4
4
  sanic_security/configuration.py,sha256=2kWC4CZXvWR1wtBaqkMl58IA0VzxhI2ZbBTqd7LS_fE,6305
5
5
  sanic_security/exceptions.py,sha256=b_E6wbbtk9ziFfH3jZstp2E01hTm6V1yjTltANYAuMY,5582
6
6
  sanic_security/models.py,sha256=B6ZLvLqdn7ZWn1VjOylQN4ecGRfdGbtBrScVJmzIg_o,22097
7
- sanic_security/oauth.py,sha256=5ne8nNfazIpCBtN7BmSyivyMLuN3CYHarer3MkMDX0M,8349
7
+ sanic_security/oauth.py,sha256=r7OV2aKu5RfjLxl4qFs0fWH9UjAnI_LhHa19SWHuQx4,8365
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.6.dist-info/LICENSE,sha256=sXlJs9_mG-dCkPfWsDnuzydJWagS82E2gYtkVH9enHA,1100
14
- sanic_security-1.16.6.dist-info/METADATA,sha256=ggM7_-PmHLfkXSJUZSer_GqiJhhvoPOlOopujtCjy8w,25938
15
- sanic_security-1.16.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
- sanic_security-1.16.6.dist-info/top_level.txt,sha256=ZybkhHXSjfzhmv8XeqLvnNmLmv21Z0oPX6Ep4DJN8b0,15
17
- sanic_security-1.16.6.dist-info/RECORD,,
13
+ sanic_security-1.16.7.dist-info/LICENSE,sha256=sXlJs9_mG-dCkPfWsDnuzydJWagS82E2gYtkVH9enHA,1100
14
+ sanic_security-1.16.7.dist-info/METADATA,sha256=Fl0UIl6fFXCJER9QJNdobBrvE607lnysXLLAk-wTzmI,25938
15
+ sanic_security-1.16.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
+ sanic_security-1.16.7.dist-info/top_level.txt,sha256=ZybkhHXSjfzhmv8XeqLvnNmLmv21Z0oPX6Ep4DJN8b0,15
17
+ sanic_security-1.16.7.dist-info/RECORD,,