http_client docstring does not say that timeout, verify and proxies only configure the default session
Maintainers usually reply within 7 days
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Read the http_client paragraph in msal/application.py at lines 496–502, then compare it with the timeout, verify and proxies parameter notes at lines 508, 513 and 518. Add one sentence pointing readers to those parameters, and check that the paragraph makes clear they configure only the default session. A linked open pull request already addresses this issue.
Written by the indexing model from the issue text.
Description
The http_client paragraph of ClientApplication.__init__ (msal/application.py:496-502 on dev) explains retries but says nothing about timeout, verify and proxies. Those three parameters each carry "This does not apply if you have chosen to pass your own Http client" (lines 508, 513, 518), so the information exists, but only if you read those three entries; someone reading the http_client docs to decide whether to pass one does not see it.
The behaviour itself is as documented: timeout is applied with functools.partial on the session MSAL builds (application.py:702-713) and a custom client is wrapped in ThrottledHttpClient untouched. Checked on 1.38.0 with a recording fake client: its request receives no timeout kwarg, while the default session's request is a partial with timeout=5.
Proposal: one sentence in the http_client paragraph pointing at the three parameters. PR follows.
- Dominant language
- Python
- Stars
- 971
- Forks
- 223
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AzureAD/microsoft-authentication-library-for-python
-
needs attention untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
AzureAD/microsoft-authentication-library-for-python#997 ·
Maintainers usually reply within 7 days
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
AzureAD/microsoft-authentication-library-for-python#980 ·
Maintainers usually reply within 7 days
-
[Bug] User Realm Discovery drops the authority's port, so username/password sign-in fails on non-443 authoritiesPossibly taken @THEtheChad claimed this 20 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
AzureAD/microsoft-authentication-library-for-python#989 ·
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
AzureAD/microsoft-authentication-library-for-python#984 ·
Maintainers usually reply within 7 days
-
[Bug] Support library-agnostic HTTP clients for Service Fabric managed identityPossibly taken @4gust claimed this 20 days ago. OpenAzureSDK bug P1
Difficulty 4/5 3-5 days Newbie friendliness 48/100
AzureAD/microsoft-authentication-library-for-python#965 · 1 comment · 1 assignee ·
Maintainers usually reply within 7 days
All issues in AzureAD/microsoft-authentication-library-for-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bad-antics/lateralus-lang#1623 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
fossguild/thelifesnake#82 ·
Maintainers usually reply within 1 day
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorOpengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pietbarber/Manage2Soar#1189 ·
Maintainers usually reply within 1 day
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinatesPossibly taken @dtgaebe claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sandialabs/WecOptTool#467 ·