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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iaptoolkit
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Library of common utils for interacting with Identity-Aware Proxies
5
5
  Author: Rob Voigt
6
6
  Author-email: code@ravoigt.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "iaptoolkit"
3
- version = "0.2.2"
3
+ version = "0.2.4"
4
4
  description = "Library of common utils for interacting with Identity-Aware Proxies"
5
5
  authors = ["Rob Voigt <code@ravoigt.com>"]
6
6
  readme = "README.md"
@@ -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=False, use_auth_header=use_auth_header
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=True, use_auth_header=use_auth_header
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