@@ -38,6 +38,7 @@ def __init__(self, base_url=None, creds=None):
3838 self ._all_host_types_locations = None
3939 self ._locations = None
4040 self ._suppress_fedauth_redirect = True
41+ self ._force_msa_pass_through = True
4142 self .normalized_url = VssClient ._normalize_url (base_url )
4243
4344 def add_user_agent (self , user_agent ):
@@ -88,6 +89,8 @@ def _send(self, http_method, location_id, version, route_values=None,
8889 headers [key ] = self .config .additional_headers [key ]
8990 if self ._suppress_fedauth_redirect :
9091 headers ['X-TFS-FedAuthRedirect' ] = 'Suppress'
92+ if self ._force_msa_pass_through :
93+ headers ['X-VSS-ForceMsaPassThrough' ] = 'true'
9194 if VssClient ._session_header_key in VssClient ._session_data and VssClient ._session_header_key not in headers :
9295 headers [VssClient ._session_header_key ] = VssClient ._session_data [VssClient ._session_header_key ]
9396 response = self ._send_request (request = request , headers = headers , content = content )
@@ -173,6 +176,8 @@ def _get_resource_locations(self, all_host_types):
173176 headers = {'Accept' : 'application/json' }
174177 if self ._suppress_fedauth_redirect :
175178 headers ['X-TFS-FedAuthRedirect' ] = 'Suppress'
179+ if self ._force_msa_pass_through :
180+ headers ['X-VSS-ForceMsaPassThrough' ] = 'true'
176181 response = self ._send_request (request , headers = headers )
177182 wrapper = self ._base_deserialize ('VssJsonCollectionWrapper' , response )
178183 if wrapper is None :
0 commit comments