pypomes-jwt 0.7.9__py3-none-any.whl → 0.8.0__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.

Potentially problematic release.


This version of pypomes-jwt might be problematic. Click here for more details.

pypomes_jwt/__init__.py CHANGED
@@ -8,7 +8,7 @@ from .jwt_constants import (
8
8
  from .jwt_pomes import (
9
9
  jwt_needed, jwt_verify_request,
10
10
  jwt_get_tokens, jwt_get_claims, jwt_validate_token,
11
- jwt_assert_access, jwt_set_access, jwt_remove_account, jwt_revoke_token
11
+ jwt_assert_account, jwt_set_account, jwt_remove_account, jwt_revoke_token
12
12
  )
13
13
 
14
14
  __all__ = [
@@ -21,7 +21,7 @@ __all__ = [
21
21
  # jwt_pomes
22
22
  "jwt_needed", "jwt_verify_request",
23
23
  "jwt_get_tokens", "jwt_get_claims", "jwt_validate_token",
24
- "jwt_assert_access", "jwt_set_access", "jwt_remove_account", "jwt_revoke_token"
24
+ "jwt_assert_account", "jwt_set_account", "jwt_remove_account", "jwt_revoke_token"
25
25
  ]
26
26
 
27
27
  from importlib.metadata import version
pypomes_jwt/jwt_pomes.py CHANGED
@@ -77,7 +77,7 @@ def jwt_verify_request(request: Request,
77
77
  return result
78
78
 
79
79
 
80
- def jwt_assert_access(account_id: str) -> bool:
80
+ def jwt_assert_account(account_id: str) -> bool:
81
81
  """
82
82
  Determine whether access for *account_id* has been established.
83
83
 
@@ -87,17 +87,17 @@ def jwt_assert_access(account_id: str) -> bool:
87
87
  return __jwt_data.access_data.get(account_id) is not None
88
88
 
89
89
 
90
- def jwt_set_access(account_id: str,
91
- reference_url: str,
92
- claims: dict[str, Any],
93
- access_max_age: int = JWT_ACCESS_MAX_AGE,
94
- refresh_max_age: int = JWT_REFRESH_MAX_AGE,
95
- grace_interval: int = None,
96
- token_audience: str = None,
97
- token_nonce: str = None,
98
- request_timeout: int = None,
99
- remote_provider: bool = True,
100
- logger: Logger = None) -> None:
90
+ def jwt_set_account(account_id: str,
91
+ reference_url: str,
92
+ claims: dict[str, Any],
93
+ access_max_age: int = JWT_ACCESS_MAX_AGE,
94
+ refresh_max_age: int = JWT_REFRESH_MAX_AGE,
95
+ grace_interval: int = None,
96
+ token_audience: str = None,
97
+ token_nonce: str = None,
98
+ request_timeout: int = None,
99
+ remote_provider: bool = True,
100
+ logger: Logger = None) -> None:
101
101
  """
102
102
  Set the data needed to obtain JWT tokens for *account_id*.
103
103
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypomes_jwt
3
- Version: 0.7.9
3
+ Version: 0.8.0
4
4
  Summary: A collection of Python pomes, penyeach (JWT module)
5
5
  Project-URL: Homepage, https://github.com/TheWiseCoder/PyPomes-JWT
6
6
  Project-URL: Bug Tracker, https://github.com/TheWiseCoder/PyPomes-JWT/issues
@@ -0,0 +1,8 @@
1
+ pypomes_jwt/__init__.py,sha256=06WdwiP2m5jtrFjpPSacg4fRd2Dh6gVo93xJhmu73J4,1134
2
+ pypomes_jwt/jwt_constants.py,sha256=6-Jw4ORgf32hRWnaGyVISXMJMtTBk7LdKl3RrDy7Ll0,4328
3
+ pypomes_jwt/jwt_data.py,sha256=gyhGquSQbHevOKIoXmAmjMSwCjXB7pYbI2sY-7sGGO8,19158
4
+ pypomes_jwt/jwt_pomes.py,sha256=PPx-JTlR2dVsLUFlkCiZCxYOnH-BbwqpptBDHO_PIfI,15213
5
+ pypomes_jwt-0.8.0.dist-info/METADATA,sha256=C2fRw5H6are30XZfHLK5IpyqNFlL59Kt9Z0VtJXF07E,599
6
+ pypomes_jwt-0.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ pypomes_jwt-0.8.0.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
8
+ pypomes_jwt-0.8.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- pypomes_jwt/__init__.py,sha256=xUDd_xphRQFHuTxrvlQxO-mHIXgTqZjHWHMgp5gRrXU,1130
2
- pypomes_jwt/jwt_constants.py,sha256=6-Jw4ORgf32hRWnaGyVISXMJMtTBk7LdKl3RrDy7Ll0,4328
3
- pypomes_jwt/jwt_data.py,sha256=gyhGquSQbHevOKIoXmAmjMSwCjXB7pYbI2sY-7sGGO8,19158
4
- pypomes_jwt/jwt_pomes.py,sha256=xNBlHhvrOH07WP6hKE0PyDl4fKSl0R1Xg7AQO_1b1uo,15201
5
- pypomes_jwt-0.7.9.dist-info/METADATA,sha256=rXu25F1ufUL_U7frUaV1DMAj27pH8gvPX-TIA0qLlrg,599
6
- pypomes_jwt-0.7.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- pypomes_jwt-0.7.9.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
8
- pypomes_jwt-0.7.9.dist-info/RECORD,,