airbyte-cdk 0.40.4__py3-none-any.whl → 0.40.5__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py +1 -1
- {airbyte_cdk-0.40.4.dist-info → airbyte_cdk-0.40.5.dist-info}/METADATA +1 -1
- {airbyte_cdk-0.40.4.dist-info → airbyte_cdk-0.40.5.dist-info}/RECORD +8 -8
- unit_tests/sources/declarative/auth/test_oauth.py +2 -2
- unit_tests/sources/streams/http/requests_native_auth/test_requests_native_auth.py +2 -2
- {airbyte_cdk-0.40.4.dist-info → airbyte_cdk-0.40.5.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-0.40.4.dist-info → airbyte_cdk-0.40.5.dist-info}/WHEEL +0 -0
- {airbyte_cdk-0.40.4.dist-info → airbyte_cdk-0.40.5.dist-info}/top_level.txt +0 -0
@@ -82,7 +82,7 @@ class AbstractOauth2Authenticator(AuthBase):
|
|
82
82
|
response = requests.request(
|
83
83
|
method="POST",
|
84
84
|
url=self.get_token_refresh_endpoint(),
|
85
|
-
|
85
|
+
json=self.build_refresh_request_body(),
|
86
86
|
headers={"Content-Type": "application/json"},
|
87
87
|
)
|
88
88
|
response.raise_for_status()
|
@@ -143,7 +143,7 @@ airbyte_cdk/sources/streams/http/auth/core.py,sha256=_s9wewvvIcOgYjhHGDj_YHApnF5
|
|
143
143
|
airbyte_cdk/sources/streams/http/auth/oauth.py,sha256=zchPWN1utNg02F93f5b4UFI5OXYo8-QhocbsXhLdG4U,4135
|
144
144
|
airbyte_cdk/sources/streams/http/auth/token.py,sha256=oU1ul0LsGsPGN_vOJOKw1xX2y_XWULRxjqXu7Rivcr8,1940
|
145
145
|
airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py,sha256=RN0D3nOX1xLgwEwKWu6pkGy3XqBFzKSNZ8Lf6umU2eY,413
|
146
|
-
airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py,sha256=
|
146
|
+
airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py,sha256=zyspGcuUVFmoT6zR6PZHxENerq84KrM35FZB4-Uvv30,5464
|
147
147
|
airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py,sha256=T0hVF2cBXGgIfrCslvTC1uNm9rNbYjENNl2Cb3mXuSY,961
|
148
148
|
airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py,sha256=uK5n1oImmFkJJCRukvNNSxCwRcXPV0BAkeOmr5ep6LY,11531
|
149
149
|
airbyte_cdk/sources/streams/http/requests_native_auth/token.py,sha256=hDti8DlF_R5YYX95hg9BPogYtG-KUYtOifrFDv_L3Hk,2456
|
@@ -186,7 +186,7 @@ unit_tests/sources/declarative/test_declarative_stream.py,sha256=3leJnZIYHiFq8XI
|
|
186
186
|
unit_tests/sources/declarative/test_manifest_declarative_source.py,sha256=GckUc3nepzZkD1UM24woHlYCVZb5DP4IAQC3IeMyZF0,58924
|
187
187
|
unit_tests/sources/declarative/test_yaml_declarative_source.py,sha256=6HhsUFgB7ueN0yOUHWb4gpPYLng5jasxN_plvz3x37g,5097
|
188
188
|
unit_tests/sources/declarative/auth/__init__.py,sha256=4Hw-PX1-VgESLF16cDdvuYCzGJtHntThLF4qIiULWeo,61
|
189
|
-
unit_tests/sources/declarative/auth/test_oauth.py,sha256=
|
189
|
+
unit_tests/sources/declarative/auth/test_oauth.py,sha256=LUppKAhbLWyMidvvzV57_G_Jr3CZ3iT2eaW63kWWLPY,8514
|
190
190
|
unit_tests/sources/declarative/auth/test_session_token_auth.py,sha256=mxWCm_0AyVI6J1Q5CjogXY-EkXFfWkMZjNtBeb0bOow,6135
|
191
191
|
unit_tests/sources/declarative/auth/test_token_auth.py,sha256=EIaxGFvaUE6vAUW2_tBrds6nTx4qhfYK8ppRwoNXKd0,6162
|
192
192
|
unit_tests/sources/declarative/checks/__init__.py,sha256=ZnqYNxHsKCgO38IwB34RQyRMXTs4GTvlRi3ImKnIioo,61
|
@@ -261,15 +261,15 @@ unit_tests/sources/streams/http/test_http.py,sha256=H0lGcb0XHuM1R7GC3wAaaxhGoNwi
|
|
261
261
|
unit_tests/sources/streams/http/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
262
262
|
unit_tests/sources/streams/http/auth/test_auth.py,sha256=gdWpJ-cR64qRXmmPOQWhVd4E6ekXyJEIEfJxA0jlDvc,6546
|
263
263
|
unit_tests/sources/streams/http/requests_native_auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
264
|
-
unit_tests/sources/streams/http/requests_native_auth/test_requests_native_auth.py,sha256=
|
264
|
+
unit_tests/sources/streams/http/requests_native_auth/test_requests_native_auth.py,sha256=I5nRr4_KpBCfugIuFFy_aPHqdJmrhz7Li_Ap23LH7-g,14166
|
265
265
|
unit_tests/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
266
266
|
unit_tests/utils/test_datetime_format_inferrer.py,sha256=Io2o5flTre9gyI_IDDMpzxOjCz3sr16LO0GRqOD59uk,2946
|
267
267
|
unit_tests/utils/test_schema_inferrer.py,sha256=Z2jHBZ540wnYkylIdV_2xr75Vtwlxuyg4MNPAG-xhpk,7817
|
268
268
|
unit_tests/utils/test_secret_utils.py,sha256=XKe0f1RHYii8iwE6ATmBr5JGDI1pzzrnZUGdUSMJQP4,4886
|
269
269
|
unit_tests/utils/test_stream_status_utils.py,sha256=NpV155JMXA6CG-2Zvofa14lItobyh3Onttc59X4m5DI,3382
|
270
270
|
unit_tests/utils/test_traced_exception.py,sha256=bDFP5zMBizFenz6V2WvEZTRCKGB5ijh3DBezjbfoYIs,4198
|
271
|
-
airbyte_cdk-0.40.
|
272
|
-
airbyte_cdk-0.40.
|
273
|
-
airbyte_cdk-0.40.
|
274
|
-
airbyte_cdk-0.40.
|
275
|
-
airbyte_cdk-0.40.
|
271
|
+
airbyte_cdk-0.40.5.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
272
|
+
airbyte_cdk-0.40.5.dist-info/METADATA,sha256=f9xyRfrhLeiYQ9rlUBc6f0baY7XwyGJGsIyMVIlHhR0,8902
|
273
|
+
airbyte_cdk-0.40.5.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
274
|
+
airbyte_cdk-0.40.5.dist-info/top_level.txt,sha256=edvsDKTnE6sD2wfCUaeTfKf5gQIL6CPVMwVL2sWZzqo,51
|
275
|
+
airbyte_cdk-0.40.5.dist-info/RECORD,,
|
@@ -203,7 +203,7 @@ class TestOauth2Authenticator:
|
|
203
203
|
assert oauth.get_token_expiry_date() == pendulum.parse(next_day)
|
204
204
|
|
205
205
|
|
206
|
-
def mock_request(method, url,
|
206
|
+
def mock_request(method, url, json, headers):
|
207
207
|
if url == "refresh_end" and headers == {"Content-Type": "application/json"}:
|
208
208
|
return resp
|
209
|
-
raise Exception(f"Error while refreshing access token with request: {method}, {url}, {
|
209
|
+
raise Exception(f"Error while refreshing access token with request: {method}, {url}, {json}, {headers}")
|
@@ -314,7 +314,7 @@ class TestSingleUseRefreshTokenOauth2Authenticator:
|
|
314
314
|
assert authenticator.refresh_access_token() == ("new_access_token", "42", "new_refresh_token")
|
315
315
|
|
316
316
|
|
317
|
-
def mock_request(method, url,
|
317
|
+
def mock_request(method, url, json, headers):
|
318
318
|
if url == "refresh_end" and headers == {"Content-Type": "application/json"}:
|
319
319
|
return resp
|
320
|
-
raise Exception(f"Error while refreshing access token with request: {method}, {url}, {
|
320
|
+
raise Exception(f"Error while refreshing access token with request: {method}, {url}, {json}, {headers}")
|
File without changes
|
File without changes
|
File without changes
|