Skip to content

Commit f6216ec

Browse files
authored
Bump auth0-python to 4.9.* (#13803)
1 parent 648ed7b commit f6216ec

File tree

10 files changed

+46
-37
lines changed

10 files changed

+46
-37
lines changed

stubs/auth0-python/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = "4.8.*"
1+
version = "4.9.*"
22
upstream_repository = "https://github.com/auth0/auth0-python"
33
requires = ["cryptography", "types-requests"]

stubs/auth0-python/auth0/authentication/async_token_verifier.pyi

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from _typeshed import Incomplete
2-
31
from .. import TokenValidationError as TokenValidationError
42
from ..rest_async import AsyncRestClient as AsyncRestClient
53
from .token_verifier import (
@@ -18,9 +16,9 @@ class AsyncJwksFetcher(JwksFetcher):
1816
async def get_key(self, key_id: str): ...
1917

2018
class AsyncTokenVerifier(TokenVerifier):
21-
iss: Incomplete
22-
aud: Incomplete
23-
leeway: Incomplete
19+
iss: str
20+
aud: str
21+
leeway: int
2422
def __init__(
2523
self, signature_verifier: AsyncAsymmetricSignatureVerifier, issuer: str, audience: str, leeway: int = 0
2624
) -> None: ...

stubs/auth0-python/auth0/authentication/base.pyi

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
from _typeshed import Incomplete
2+
from typing import Final
23

34
from auth0.rest import RestClient as RestClient, RestClientOptions as RestClientOptions
45
from auth0.types import RequestData as RequestData
56

67
from .client_authentication import add_client_authentication as add_client_authentication
78

8-
UNKNOWN_ERROR: str
9+
UNKNOWN_ERROR: Final[str]
910

1011
class AuthenticationBase:
11-
domain: Incomplete
12-
client_id: Incomplete
13-
client_secret: Incomplete
14-
client_assertion_signing_key: Incomplete
15-
client_assertion_signing_alg: Incomplete
16-
protocol: Incomplete
17-
client: Incomplete
12+
domain: str
13+
client_id: str
14+
client_secret: str | None
15+
client_assertion_signing_key: str | None
16+
client_assertion_signing_alg: str | None
17+
protocol: str
18+
client: RestClient
1819
def __init__(
1920
self,
2021
domain: str,

stubs/auth0-python/auth0/authentication/get_token.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ class GetToken(AuthenticationBase):
1919
def refresh_token(self, refresh_token: str, scope: str = "", grant_type: str = "refresh_token"): ...
2020
def passwordless_login(self, username: str, otp: str, realm: str, scope: str, audience: str): ...
2121
def backchannel_login(self, auth_req_id: str, grant_type: str = "urn:openid:params:grant-type:ciba"): ...
22+
def access_token_for_connection(
23+
self,
24+
subject_token_type: str,
25+
subject_token: str,
26+
requested_token_type: str,
27+
connection: str | None = None,
28+
grant_type: str = ...,
29+
): ...

stubs/auth0-python/auth0/authentication/token_verifier.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class AsymmetricSignatureVerifier(SignatureVerifier):
2020
def __init__(self, jwks_url: str, algorithm: str = "RS256", cache_ttl: int = ...) -> None: ...
2121

2222
class TokenVerifier:
23-
iss: Incomplete
24-
aud: Incomplete
25-
leeway: Incomplete
23+
iss: str
24+
aud: str
25+
leeway: int
2626
def __init__(self, signature_verifier: SignatureVerifier, issuer: str, audience: str, leeway: int = 0) -> None: ...
2727
def verify(
2828
self, token: str, nonce: str | None = None, max_age: int | None = None, organization: str | None = None

stubs/auth0-python/auth0/authentication/users.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ from auth0.rest import RestClient as RestClient, RestClientOptions as RestClient
44
from auth0.types import TimeoutType as TimeoutType
55

66
class Users:
7-
domain: Incomplete
8-
protocol: Incomplete
9-
client: Incomplete
7+
domain: str
8+
protocol: str
9+
client: RestClient
1010
def __init__(self, domain: str, telemetry: bool = True, timeout: TimeoutType = 5.0, protocol: str = "https") -> None: ...
1111
def userinfo(self, access_token: str) -> dict[str, Incomplete]: ...
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from _typeshed import Incomplete
22

33
class Auth0Error(Exception):
4-
status_code: Incomplete
5-
error_code: Incomplete
6-
message: Incomplete
7-
content: Incomplete
4+
status_code: int
5+
error_code: str
6+
message: str
7+
content: Incomplete | None
88
def __init__(self, status_code: int, error_code: str, message: str, content: Incomplete | None = None) -> None: ...
99

1010
class RateLimitError(Auth0Error):
11-
reset_at: Incomplete
11+
reset_at: int
1212
def __init__(self, error_code: str, message: str, reset_at: int) -> None: ...
1313

1414
class TokenValidationError(Exception): ...

stubs/auth0-python/auth0/management/users.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,5 @@ class Users:
115115
async def delete_authentication_methods_async(self, user_id: str): ...
116116
def delete_authentication_method_by_id(self, user_id: str, authentication_method_id: str): ...
117117
async def delete_authentication_method_by_id_async(self, user_id: str, authentication_method_id: str): ...
118+
def list_tokensets(self, id: str, page: int = 0, per_page: int = 25, include_totals: bool = True): ...
119+
def delete_tokenset_by_id(self, user_id: str, tokenset_id: str): ...

stubs/auth0-python/auth0/rest.pyi

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
from _typeshed import Incomplete
22
from collections.abc import Mapping
3+
from typing import Final
34

45
import requests
56
from auth0.exceptions import Auth0Error as Auth0Error, RateLimitError as RateLimitError
67
from auth0.rest_async import RequestsResponse as RequestsResponse
78
from auth0.types import RequestData as RequestData, TimeoutType as TimeoutType
89

9-
UNKNOWN_ERROR: str
10+
UNKNOWN_ERROR: Final[str]
1011

1112
class RestClientOptions:
12-
telemetry: Incomplete
13-
timeout: Incomplete
14-
retries: Incomplete
13+
telemetry: bool
14+
timeout: TimeoutType
15+
retries: int
1516
def __init__(self, telemetry: bool = True, timeout: TimeoutType = 5.0, retries: int = 3) -> None: ...
1617

1718
class RestClient:
18-
options: Incomplete
19-
jwt: Incomplete
20-
base_headers: Incomplete
21-
telemetry: Incomplete
22-
timeout: Incomplete
19+
options: RestClientOptions
20+
jwt: str | None
21+
base_headers: dict[str, str]
22+
telemetry: bool
23+
timeout: TimeoutType
2324
def __init__(
2425
self, jwt: str | None, telemetry: bool = True, timeout: TimeoutType = 5.0, options: RestClientOptions | None = None
2526
) -> None: ...

stubs/auth0-python/auth0/rest_async.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ from .rest import (
1313

1414
class AsyncRestClient(RestClient):
1515
timeout: Incomplete
16-
def __init__(self, *args, **kwargs) -> None: ...
1716
def set_session(self, session) -> None: ...
1817
async def get(self, url: str, params: dict[str, Incomplete] | None = None, headers: dict[str, str] | None = None): ...
1918
async def post(self, url: str, data: RequestData | None = None, headers: dict[str, str] | None = None): ...
@@ -23,7 +22,7 @@ class AsyncRestClient(RestClient):
2322
async def delete(self, url: str, params: dict[str, Incomplete] | None = None, data: RequestData | None = None): ...
2423

2524
class RequestsResponse:
26-
status_code: Incomplete
25+
status_code: int
2726
headers: Incomplete
28-
text: Incomplete
27+
text: str
2928
def __init__(self, response, text: str) -> None: ...

0 commit comments

Comments
 (0)