Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #125 from AzureAD/wstrust-timeout
Browse files Browse the repository at this point in the history
Add timeout for WSTrust
  • Loading branch information
rayluo authored Mar 6, 2018
2 parents f836ad9 + 39d6bc4 commit a8718ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adal/wstrust_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ def acquire_token(self, username, password):

operation = "WS-Trust RST"
resp = requests.post(self._wstrust_endpoint_url, headers=options['headers'], data=rst,
allow_redirects=True, verify=self._call_context.get('verify_ssl', None))
allow_redirects=True,
verify=self._call_context.get('verify_ssl', None),
timeout=self._call_context.get('timeout', None))

util.log_return_correlation_id(self._log, operation, resp)

Expand Down

0 comments on commit a8718ab

Please sign in to comment.