mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Update vendored requests-oauthlib to 1.3.1
This commit is contained in:
parent
501be2c479
commit
ebc9718117
7 changed files with 32 additions and 24 deletions
|
@ -189,6 +189,7 @@ class OAuth2Session(requests.Session):
|
|||
proxies=None,
|
||||
include_client_id=None,
|
||||
client_secret=None,
|
||||
cert=None,
|
||||
**kwargs
|
||||
):
|
||||
"""Generic method for fetching an access token from the token endpoint.
|
||||
|
@ -229,6 +230,10 @@ class OAuth2Session(requests.Session):
|
|||
`auth` tuple. If the value is `None`, it will be
|
||||
omitted from the request, however if the value is
|
||||
an empty string, an empty string will be sent.
|
||||
:param cert: Client certificate to send for OAuth 2.0 Mutual-TLS Client
|
||||
Authentication (draft-ietf-oauth-mtls). Can either be the
|
||||
path of a file containing the private key and certificate or
|
||||
a tuple of two filenames for certificate and key.
|
||||
:param kwargs: Extra parameters to include in the token request.
|
||||
:return: A token dict
|
||||
"""
|
||||
|
@ -341,6 +346,7 @@ class OAuth2Session(requests.Session):
|
|||
auth=auth,
|
||||
verify=verify,
|
||||
proxies=proxies,
|
||||
cert=cert,
|
||||
**request_kwargs
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue