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

Commit

Permalink
Add timeout for WSTrust
Browse files Browse the repository at this point in the history
  • Loading branch information
rayluo committed Mar 2, 2018
1 parent f836ad9 commit 39d6bc4
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 39d6bc4

Please sign in to comment.