Skip to content

Commit efceeea

Browse files
authored
Merge pull request #407 from smarie/fix_issue_404
Have `OAuth2Session` correctly use the `self.verify` value if `verify` is not overridden in `fetch_token` and `refresh_token`.
2 parents f0abd9f + e1cef20 commit efceeea

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ Patches and Suggestions
2222
- Vinay Raikar <[email protected]>
2323
- kracekumar <[email protected]>
2424
- David Baumgold <[email protected]>
25+
- Sylvain Marie <[email protected]>
2526
- Craig Anderson <[email protected]>

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
History
22
-------
33

4+
v1.3.2 (TBD)
5+
++++++++++++++++++++++++
6+
- ``OAuth2Session`` now correctly uses the ``self.verify`` value if ``verify``
7+
is not overridden in ``fetch_token`` and ``refresh_token``. Fixes `#404
8+
<https://github.com/requests/requests-oauthlib/issues/404>`_.
9+
410
v1.3.1 (21 January 2022)
511
++++++++++++++++++++++++
612

713
- Add initial support for OAuth Mutual TLS (draft-ietf-oauth-mtls)
14+
- Removed outdated LinkedIn Compliance Fixes
815
- Add eBay compliance fix
916
- Add Spotify OAuth 2 Tutorial
1017
- Add support for python 3.8, 3.9

requests_oauthlib/oauth2_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def fetch_token(
185185
force_querystring=False,
186186
timeout=None,
187187
headers=None,
188-
verify=True,
188+
verify=None,
189189
proxies=None,
190190
include_client_id=None,
191191
client_secret=None,
@@ -388,7 +388,7 @@ def refresh_token(
388388
auth=None,
389389
timeout=None,
390390
headers=None,
391-
verify=True,
391+
verify=None,
392392
proxies=None,
393393
**kwargs
394394
):

0 commit comments

Comments
 (0)