boto3-refresh-session 1.3.7__py3-none-any.whl → 1.3.9__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.
- boto3_refresh_session/__init__.py +1 -1
- boto3_refresh_session/custom.py +4 -4
- {boto3_refresh_session-1.3.7.dist-info → boto3_refresh_session-1.3.9.dist-info}/METADATA +2 -2
- boto3_refresh_session-1.3.9.dist-info/RECORD +11 -0
- boto3_refresh_session-1.3.7.dist-info/RECORD +0 -11
- {boto3_refresh_session-1.3.7.dist-info → boto3_refresh_session-1.3.9.dist-info}/LICENSE +0 -0
- {boto3_refresh_session-1.3.7.dist-info → boto3_refresh_session-1.3.9.dist-info}/NOTICE +0 -0
- {boto3_refresh_session-1.3.7.dist-info → boto3_refresh_session-1.3.9.dist-info}/WHEEL +0 -0
boto3_refresh_session/custom.py
CHANGED
@@ -16,8 +16,8 @@ class CustomRefreshableSession(BaseRefreshableSession, method="custom"):
|
|
16
16
|
Parameters
|
17
17
|
----------
|
18
18
|
custom_credentials_method: Callable
|
19
|
-
Required. Accepts a
|
20
|
-
|
19
|
+
Required. Accepts a callable object that returns temporary AWS security credentials. That
|
20
|
+
object must return a dictionary containing 'access_key', 'secret_key', 'token', and
|
21
21
|
'expiry_time' when called.
|
22
22
|
custom_credentials_method_args : dict[str, Any], optional
|
23
23
|
Optional keyword arguments for the function passed to the ``custom_credentials_method``
|
@@ -35,7 +35,7 @@ class CustomRefreshableSession(BaseRefreshableSession, method="custom"):
|
|
35
35
|
|
36
36
|
Examples
|
37
37
|
--------
|
38
|
-
Write (or import) the
|
38
|
+
Write (or import) the callable object for obtaining temporary AWS security credentials.
|
39
39
|
|
40
40
|
>>> def your_custom_credential_getter(your_param, another_param):
|
41
41
|
>>> ...
|
@@ -46,7 +46,7 @@ class CustomRefreshableSession(BaseRefreshableSession, method="custom"):
|
|
46
46
|
>>> 'expiry_time': ...,
|
47
47
|
>>> }
|
48
48
|
|
49
|
-
Pass that
|
49
|
+
Pass that callable object to ``RefreshableSession``.
|
50
50
|
|
51
51
|
>>> sess = RefreshableSession(
|
52
52
|
>>> method='custom',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: boto3-refresh-session
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.9
|
4
4
|
Summary: A simple Python package for refreshing the temporary security credentials in a boto3.session.Session object automatically.
|
5
5
|
License: MIT
|
6
6
|
Keywords: boto3,botocore,aws
|
@@ -153,7 +153,7 @@ session = RefreshableSession(
|
|
153
153
|
|
154
154
|
## Usage (Custom)
|
155
155
|
|
156
|
-
If you have a highly sophisticated, novel, or idiosyncratic authentication flow not included in boto3-refresh-session then you will need to provide your own custom temporary credentials
|
156
|
+
If you have a highly sophisticated, novel, or idiosyncratic authentication flow not included in boto3-refresh-session then you will need to provide your own custom temporary credentials callable object. `RefreshableSession` accepts custom credentials callable objects, as shown below.
|
157
157
|
|
158
158
|
```python
|
159
159
|
# create (or import) your custom credential method
|
@@ -0,0 +1,11 @@
|
|
1
|
+
boto3_refresh_session/__init__.py,sha256=OhM21H2hXSppEJa7kDweSHaWnMJz8e83ILFI5IiLHCE,200
|
2
|
+
boto3_refresh_session/custom.py,sha256=L3kQ_6e-lmIGgm1GHLngOqJOzeS-oDFoVCPTkva0-PA,3760
|
3
|
+
boto3_refresh_session/ecs.py,sha256=WIC5mlbcEnM1oo-QXmmtiw2mjFDn01hBfcFh67ku42A,3713
|
4
|
+
boto3_refresh_session/exceptions.py,sha256=qcFzdIuK5PZirs77H_Kb64S9QFb6cn2OJtirjvaRLiY,972
|
5
|
+
boto3_refresh_session/session.py,sha256=ak8lvgoHMObaJgL4c80ih4bptRHS3ASojnaWdbxn5kA,5246
|
6
|
+
boto3_refresh_session/sts.py,sha256=paIgbmn9a3cATNX-6AEGxnSGNZnX1pj4rRQmh8gQSKs,3132
|
7
|
+
boto3_refresh_session-1.3.9.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
8
|
+
boto3_refresh_session-1.3.9.dist-info/METADATA,sha256=zAPlmRezEJOQTleZuMkT6rM9BczeL8qTLFov1jCuEoY,7051
|
9
|
+
boto3_refresh_session-1.3.9.dist-info/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
|
10
|
+
boto3_refresh_session-1.3.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
11
|
+
boto3_refresh_session-1.3.9.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
boto3_refresh_session/__init__.py,sha256=Uv136RK6A7H9vQ1nzXPCuIrJBbKZmH8DQaznDFduILU,200
|
2
|
-
boto3_refresh_session/custom.py,sha256=0EemEoai-CnixXpFyvjmE5M9QffgBRZpMoTIwQPaxmY,3744
|
3
|
-
boto3_refresh_session/ecs.py,sha256=WIC5mlbcEnM1oo-QXmmtiw2mjFDn01hBfcFh67ku42A,3713
|
4
|
-
boto3_refresh_session/exceptions.py,sha256=qcFzdIuK5PZirs77H_Kb64S9QFb6cn2OJtirjvaRLiY,972
|
5
|
-
boto3_refresh_session/session.py,sha256=ak8lvgoHMObaJgL4c80ih4bptRHS3ASojnaWdbxn5kA,5246
|
6
|
-
boto3_refresh_session/sts.py,sha256=paIgbmn9a3cATNX-6AEGxnSGNZnX1pj4rRQmh8gQSKs,3132
|
7
|
-
boto3_refresh_session-1.3.7.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
8
|
-
boto3_refresh_session-1.3.7.dist-info/METADATA,sha256=ORil-xBwlFnv7oaFgiVN8XKglY9HM0A9jF_2j7LDmxY,7033
|
9
|
-
boto3_refresh_session-1.3.7.dist-info/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
|
10
|
-
boto3_refresh_session-1.3.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
11
|
-
boto3_refresh_session-1.3.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|