Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 267c046

Browse files
authored
[Authlib] Update to 1.6.6 (python#15131)
1 parent a9bc04b commit 267c046

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

stubs/Authlib/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "1.6.5"
1+
version = "1.6.6"
22
upstream_repository = "https://github.com/lepture/authlib"
33
requires = ["cryptography"]
44
partial_stub = true

stubs/Authlib/authlib/oidc/core/grants/code.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
from logging import Logger
22

33
from authlib.oauth2 import OAuth2Request
4+
from authlib.oauth2.client import OAuth2Client
45
from authlib.oauth2.rfc6749 import BaseGrant
56
from authlib.oidc.core import UserInfo
67

78
log: Logger
89

910
class OpenIDToken:
10-
def get_jwt_config(self, grant: BaseGrant) -> dict[str, str | int]: ...
11+
def get_jwt_config(self, grant: BaseGrant, client: OAuth2Client) -> dict[str, str | int]: ...
1112
def generate_user_info(self, user, scope: str) -> UserInfo: ...
1213
def get_audiences(self, request: OAuth2Request) -> list[str]: ...
1314
def process_token(self, grant: BaseGrant, response) -> dict[str, str | int]: ...

stubs/Authlib/authlib/oidc/core/grants/implicit.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
from _typeshed import Incomplete
22
from logging import Logger
33

4+
from authlib.oauth2.client import OAuth2Client
45
from authlib.oauth2.rfc6749 import ImplicitGrant
6+
from authlib.oidc.core import UserInfo
57

68
log: Logger
79

810
class OpenIDImplicitGrant(ImplicitGrant):
911
RESPONSE_TYPES: Incomplete
1012
DEFAULT_RESPONSE_MODE: str
11-
def exists_nonce(self, nonce, request) -> None: ...
12-
def get_jwt_config(self) -> None: ...
13-
def generate_user_info(self, user, scope) -> None: ...
13+
def exists_nonce(self, nonce, request) -> bool: ...
14+
def get_jwt_config(self, client: OAuth2Client) -> dict[str, Incomplete]: ...
15+
def generate_user_info(self, user, scope) -> UserInfo: ...
1416
def get_audiences(self, request): ...
1517
def validate_authorization_request(self) -> str: ...
1618
def validate_consent_request(self) -> str: ...

0 commit comments

Comments
 (0)