Skip to content

Bump oauthlib to 3.2.* #8081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/oauthlib/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "3.1.*"
version = "3.2.*"
8 changes: 8 additions & 0 deletions stubs/oauthlib/oauthlib/oauth2/rfc6749/clients/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class Client:
redirect_url: Any
code: Any
expires_in: Any
code_verifier: str
code_challenge: str
code_challenge_method: str
def __init__(
self,
client_id,
Expand All @@ -35,6 +38,9 @@ class Client:
state: Any | None = ...,
redirect_url: Any | None = ...,
state_generator=...,
code_verifier: str | None = ...,
code_challenge: str | None = ...,
code_challenge_method: str | None = ...,
**kwargs,
) -> None: ...
@property
Expand Down Expand Up @@ -71,5 +77,7 @@ class Client:
): ...
def parse_request_body_response(self, body, scope: Any | None = ..., **kwargs): ...
def prepare_refresh_body(self, body: str = ..., refresh_token: Any | None = ..., scope: Any | None = ..., **kwargs): ...
def create_code_verifier(self, length: int) -> str: ...
def create_code_challenge(self, code_verifier: str, code_challenge_method: str | None = ...) -> str: ...
def populate_code_attributes(self, response) -> None: ...
def populate_token_attributes(self, response) -> None: ...
17 changes: 15 additions & 2 deletions stubs/oauthlib/oauthlib/oauth2/rfc6749/clients/web_application.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,22 @@ class WebApplicationClient(Client):
code: Any
def __init__(self, client_id, code: Any | None = ..., **kwargs) -> None: ...
def prepare_request_uri( # type: ignore[override]
self, uri, redirect_uri: Any | None = ..., scope: Any | None = ..., state: Any | None = ..., **kwargs
self,
uri,
redirect_uri: Any | None = ...,
scope: Any | None = ...,
state: Any | None = ...,
code_challenge: str | None = ...,
code_challenge_method: str | None = ...,
**kwargs,
): ...
def prepare_request_body( # type: ignore[override]
self, code: Any | None = ..., redirect_uri: Any | None = ..., body: str = ..., include_client_id: bool = ..., **kwargs
self,
code: Any | None = ...,
redirect_uri: Any | None = ...,
body: str = ...,
include_client_id: bool = ...,
code_verifier: str | None = ...,
**kwargs,
): ...
def parse_request_uri_response(self, uri, state: Any | None = ...): ... # type: ignore[override]
14 changes: 12 additions & 2 deletions stubs/oauthlib/oauthlib/oauth2/rfc6749/parameters.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
from typing import Any

def prepare_grant_uri(
uri, client_id, response_type, redirect_uri: Any | None = ..., scope: Any | None = ..., state: Any | None = ..., **kwargs
uri,
client_id,
response_type,
redirect_uri: Any | None = ...,
scope: Any | None = ...,
state: Any | None = ...,
code_challenge: str | None = ...,
code_challenge_method: str | None = ...,
**kwargs,
): ...
def prepare_token_request(
grant_type, body: str = ..., include_client_id: bool = ..., code_verifier: str | None = ..., **kwargs
): ...
def prepare_token_request(grant_type, body: str = ..., include_client_id: bool = ..., **kwargs): ...
def prepare_token_revocation_request(
url, token, token_type_hint: str = ..., callback: Any | None = ..., body: str = ..., **kwargs
): ...
Expand Down