Skip to content

Commit 05d6fda

Browse files
committed
[Authlib] Update to 1.9.1
1 parent 350a961 commit 05d6fda

6 files changed

Lines changed: 35 additions & 1 deletion

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.8.0"
1+
version = "1.9.1"
22
upstream-repository = "https://github.com/authlib/authlib"
33
dependencies = ["cryptography"]
44
# Requires a version of flask with a `py.typed` file
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .id_jag import IDJAGGrant as IDJAGGrant
2+
3+
__all__ = ["IDJAGGrant"]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from logging import Logger
2+
from typing import ClassVar
3+
4+
from authlib.oauth2.rfc6749 import BaseGrant, TokenEndpointMixin
5+
from authlib.oauth2.rfc7523.jwt_bearer import JWT_BEARER_GRANT_TYPE
6+
7+
log: Logger
8+
9+
class IDJAGGrant(BaseGrant, TokenEndpointMixin):
10+
GRANT_TYPE = JWT_BEARER_GRANT_TYPE
11+
REQUIRED_TYP: ClassVar[str]
12+
CLAIMS_OPTIONS: ClassVar[dict[str, dict[str, bool]]]
13+
LEEWAY: ClassVar[int]
14+
@staticmethod
15+
def sign(key, issuer, audience, subject, client_id, jti=None, issued_at=None, expires_at=None, claims=None, **kwargs): ...
16+
def validate_token_request(self) -> None: ...
17+
def create_token_response(self): ...
18+
def get_audiences(self) -> list[str]: ...
19+
# Returns a joserfc.jwk.Key or joserfc.jwk.KeySet
20+
def resolve_issuer_key(self, issuer, headers): ...
21+
def authenticate_user(self, subject): ...
22+
def check_jti(self, claims, jti) -> bool: ...
23+
def check_id_jag_permission(self, client, user, scopes) -> bool: ...

‎stubs/Authlib/authlib/oauth2/rfc9101/authorization_server.pyi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class JWTAuthenticationRequest:
1111
def __call__(self, authorization_server: AuthorizationServer) -> None: ...
1212
def get_request_object_signing_algorithms(self, client) -> list[str]: ...
1313
def parse_authorization_request(self, authorization_server: AuthorizationServer, request: OAuth2Request) -> None: ...
14+
def validate_request_uri(self, request_uri: str, client: ClientMixin) -> bool: ...
1415
def get_request_object(self, request_uri: str): ...
1516
def resolve_client_public_key(self, client: ClientMixin): ...
1617
def get_server_metadata(self) -> dict[str, Incomplete]: ...

‎stubs/Authlib/authlib/oidc/core/__init__.pyi‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from .authorization_request import OpenIDJWTAuthenticationRequest as OpenIDJWTAuthenticationRequest
12
from .claims import (
23
CodeIDToken as CodeIDToken,
34
HybridIDToken as HybridIDToken,
@@ -16,6 +17,7 @@ from .models import AuthorizationCodeMixin as AuthorizationCodeMixin
1617
from .userinfo import UserInfoEndpoint as UserInfoEndpoint
1718

1819
__all__ = [
20+
"OpenIDJWTAuthenticationRequest",
1921
"AuthorizationCodeMixin",
2022
"IDToken",
2123
"CodeIDToken",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from authlib.oauth2.rfc6749 import ClientMixin
2+
from authlib.oauth2.rfc9101 import JWTAuthenticationRequest
3+
4+
class OpenIDJWTAuthenticationRequest(JWTAuthenticationRequest):
5+
def get_client_request_uris(self, client: ClientMixin) -> list[str]: ...

0 commit comments

Comments
 (0)