iaptoolkit 0.2.2__tar.gz → 0.2.4__tar.gz
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.
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/PKG-INFO +1 -1
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/pyproject.toml +1 -1
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/__init__.py +4 -4
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/LICENSE +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/README.md +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/constants.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/exceptions.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/headers.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/tokens/__init__.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/tokens/service_account.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/tokens/structs.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/tokens/token_datastore.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/utils/__init__.py +0 -0
- {iaptoolkit-0.2.2 → iaptoolkit-0.2.4}/src/iaptoolkit/utils/urls.py +0 -0
|
@@ -146,10 +146,10 @@ class IAPToolkit_OIDC(IAPToolkit):
|
|
|
146
146
|
raise NotImplementedError("Cannot call OAuth2 methods on OIDC-only instance of IAPToolkit.")
|
|
147
147
|
|
|
148
148
|
def get_token_and_add_to_headers(
|
|
149
|
-
self, request_headers: dict, use_auth_header: bool = False
|
|
149
|
+
self, request_headers: dict, use_auth_header: bool = False, use_oauth2: bool = False,
|
|
150
150
|
) -> bool:
|
|
151
151
|
return super().get_token_and_add_to_headers(
|
|
152
|
-
request_headers=request_headers, use_oauth2=
|
|
152
|
+
request_headers=request_headers, use_oauth2=use_oauth2, use_auth_header=use_auth_header
|
|
153
153
|
)
|
|
154
154
|
|
|
155
155
|
def check_url_and_add_token_header(
|
|
@@ -193,10 +193,10 @@ class IAPToolkit_OAuth2(IAPToolkit):
|
|
|
193
193
|
raise NotImplementedError("Cannot call OIDC methods on OAuth2-only instance of IAPToolkit.")
|
|
194
194
|
|
|
195
195
|
def get_token_and_add_to_headers(
|
|
196
|
-
self, request_headers: dict, use_auth_header: bool = False
|
|
196
|
+
self, request_headers: dict, use_auth_header: bool = False, use_oauth2: bool = True,
|
|
197
197
|
) -> bool:
|
|
198
198
|
return super().get_token_and_add_to_headers(
|
|
199
|
-
request_headers=request_headers, use_oauth2=
|
|
199
|
+
request_headers=request_headers, use_oauth2=use_oauth2, use_auth_header=use_auth_header
|
|
200
200
|
)
|
|
201
201
|
|
|
202
202
|
def check_url_and_add_token_header(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|