Commit 05e841a
haroldfabla2-hue
fix: add timeout to requests calls in oauth.py
- Add timeout=60 to requests.post() in retrieve_token() (line 209)
- Add timeout=60 to requests.get() in get_azure_entra_id_workspace_endpoints() (line 548)
- Add timeout=60 to requests.post() in PATOAuthTokenExchange.refresh() (line 916)
This prevents indefinite hangs when OAuth endpoints are unreachable or slow,
matching the SDK's default http_timeout_seconds of 60 seconds.
Resolves #13381 parent 9aa5f64 commit 05e841a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
916 | | - | |
| 916 | + | |
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
| |||
0 commit comments