basedpyright 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/README.md +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +1 -0
- package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_blake2.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/_bz2.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/_contextvars.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/_csv.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/_curses.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +19 -127
- package/dist/typeshed-fallback/stdlib/_frozen_importlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +9 -6
- package/dist/typeshed-fallback/stdlib/_interpreters.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_io.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_json.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/_lzma.pyi +16 -5
- package/dist/typeshed-fallback/stdlib/_pickle.pyi +286 -0
- package/dist/typeshed-fallback/stdlib/_sitebuiltins.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/_thread.pyi +87 -39
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +35 -20
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/argparse.pyi +27 -20
- package/dist/typeshed-fallback/stdlib/array.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/ast.pyi +24 -7
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +1300 -0
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/exceptions.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/proactor_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/selector_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/streams.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/subprocess.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/taskgroups.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/threads.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/timeouts.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/transports.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/unix_events.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/builtins.pyi +21 -15
- package/dist/typeshed-fallback/stdlib/codecs.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/codeop.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +21 -22
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +69 -18
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +11 -3
- package/dist/typeshed-fallback/stdlib/datetime.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/decimal.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/email/charset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/header.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/fractions.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/gzip.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/http/__init__.pyi +15 -6
- package/dist/typeshed-fallback/stdlib/http/client.pyi +80 -58
- package/dist/typeshed-fallback/stdlib/inspect.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/itertools.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/json/scanner.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/mmap.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +63 -17
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/numbers.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/operator.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/optparse.pyi +89 -32
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/parser.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/pickle.pyi +51 -266
- package/dist/typeshed-fallback/stdlib/pickletools.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/plistlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/sched.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/select.pyi +19 -13
- package/dist/typeshed-fallback/stdlib/selectors.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/signal.pyi +47 -47
- package/dist/typeshed-fallback/stdlib/socket.pyi +8 -6
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/ssl.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +24 -10
- package/dist/typeshed-fallback/stdlib/telnetlib.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/threading.pyi +6 -53
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +193 -3
- package/dist/typeshed-fallback/stdlib/tkinter/filedialog.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/tkinter/font.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/token.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/traceback.pyi +17 -4
- package/dist/typeshed-fallback/stdlib/types.pyi +45 -10
- package/dist/typeshed-fallback/stdlib/typing.pyi +45 -47
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +53 -12
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/unittest/runner.pyi +11 -12
- package/dist/typeshed-fallback/stdlib/unittest/suite.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/weakref.pyi +19 -5
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -0
- package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +4 -3
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/zipfile/_path/glob.pyi +22 -0
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/encoding.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/errors.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/security.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/urls.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/consts.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/deprecate.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/errors.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/registry.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +93 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/__init__.pyi +44 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptodome.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptography.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/errors.pyi +72 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/jwk.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/models.pyi +25 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/__init__.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/key_set.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/__init__.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +64 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_encs.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_zips.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi +63 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/claims.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/jws_eddsa.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/util.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/__init__.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/__init__.pyi +35 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/base_server.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/models.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/resource_protector.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/rsa.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/__init__.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/auth.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/base.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/client.pyi +96 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/__init__.pyi +76 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authenticate_client.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +46 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi +92 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/__init__.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +55 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/client_credentials.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/implicit.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/refresh_token.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/models.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi +48 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/token_endpoint.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/util.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/wrappers.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/validator.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/__init__.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/client.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi +30 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/__init__.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/claims.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/errors.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/challenge.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/introspection.pyi +11 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/models.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/token_validator.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/models.pyi +40 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/__init__.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/device_code.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/endpoint.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/errors.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/models.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8693/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/__init__.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/claims.pyi +37 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/errors.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/code.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/hybrid.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/util.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/models.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/models.pyi +36 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Flask-Migrate/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-Migrate/flask_migrate/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/flask_socketio/__init__.pyi +30 -4
- package/dist/typeshed-fallback/stubs/Markdown/markdown/core.pyi +2 -13
- package/dist/typeshed-fallback/stubs/PyAutoGUI/pyautogui/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/PyYAML/yaml/constructor.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +1 -1
- package/dist/typeshed-fallback/stubs/click-log/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/core.pyi +15 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/options.pyi +12 -0
- package/dist/typeshed-fallback/stubs/click-web/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_exec.pyi +79 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_form.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/index.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/input_fields.pyi +49 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/web_click_types.pyi +18 -0
- package/dist/typeshed-fallback/stubs/croniter/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +7 -0
- package/dist/typeshed-fallback/stubs/django-import-export/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/admin.pyi +114 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/fields.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/base_formats.pyi +57 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/forms.pyi +31 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/instance_loaders.pyi +23 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/mixins.pyi +66 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/resources.pyi +232 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/results.pyi +73 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/signals.pyi +4 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/import_export_tags.pyi +8 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/tmp_storages.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/utils.pyi +18 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/widgets.pyi +66 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +2 -2
- package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/annotations.pyi +2 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/enums.pyi +50 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +3 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +53 -18
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/html.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/image_parsing.pyi +10 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/line_break.pyi +9 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/outline.pyi +21 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/output.pyi +19 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/prefs.pyi +38 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/table.pyi +13 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/gdb/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +126 -9
- package/dist/typeshed-fallback/stubs/gdb/gdb/unwinder.pyi +2 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/select.pyi +7 -2
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/ibm_db.pyi +11 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -5
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +1 -1
- package/dist/typeshed-fallback/stubs/jsonschema/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwk.pyi +4 -4
- package/dist/typeshed-fallback/stubs/lupa/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/httpclient.pyi +1 -1
- package/dist/typeshed-fallback/stubs/nanoleafapi/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/digital_twin.pyi +12 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/discovery.pyi +1 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/nanoleaf.pyi +68 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/cell_style.pyi +1 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pexpect/pexpect/pty_spawn.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pika/pika/credentials.pyi +10 -7
- package/dist/typeshed-fallback/stubs/polib/polib.pyi +3 -2
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/api_pb2.pyi +1 -1
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +4 -8
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/runtime_version.pyi +23 -0
- package/dist/typeshed-fallback/stubs/pycocotools/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/coco.pyi +6 -11
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/cocoeval.pyi +16 -30
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/mask.pyi +7 -9
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +33 -32
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +65 -65
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/relativedelta.pyi +3 -11
- package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +3 -3
- package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +2 -2
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +1 -1
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +1 -11
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/algorithms.pyi +13 -13
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +5 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +21 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/extension.pyi +3 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/extension.pyi +2 -3
- package/dist/typeshed-fallback/stubs/shapely/shapely/_enum.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/tabulate/tabulate/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +2 -2
- package/dist/typeshed-fallback/stubs/vobject/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/vobject/vobject/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/base.pyi +26 -24
- package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +5 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/icalendar.pyi +28 -37
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +20 -20
- package/dist/typeshed-fallback/stubs/vobject/vobject/win32tz.pyi +22 -22
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/python-gflags/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/python-gflags/gflags.pyi +0 -309
- package/dist/typeshed-fallback/stubs/redis/METADATA.toml +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/__init__.pyi +0 -72
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/__init__.pyi +0 -64
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/client.pyi +0 -1091
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/cluster.pyi +0 -229
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/connection.pyi +0 -363
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/lock.pyi +0 -51
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/parser.pyi +0 -9
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/retry.pyi +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/sentinel.pyi +0 -162
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/utils.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/backoff.pyi +0 -31
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +0 -817
- package/dist/typeshed-fallback/stubs/redis/redis/cluster.pyi +0 -265
- package/dist/typeshed-fallback/stubs/redis/redis/commands/__init__.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/__init__.pyi +0 -58
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/commands.pyi +0 -112
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/info.pyi +0 -43
- package/dist/typeshed-fallback/stubs/redis/redis/commands/cluster.pyi +0 -60
- package/dist/typeshed-fallback/stubs/redis/redis/commands/core.pyi +0 -1743
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/__init__.pyi +0 -26
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/commands.pyi +0 -25
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/edge.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/exceptions.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/node.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/path.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/query_result.pyi +0 -74
- package/dist/typeshed-fallback/stubs/redis/redis/commands/helpers.pyi +0 -10
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/__init__.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/commands.pyi +0 -32
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/decoders.pyi +0 -4
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/path.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/parser.pyi +0 -8
- package/dist/typeshed-fallback/stubs/redis/redis/commands/redismodules.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/__init__.pyi +0 -22
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/aggregation.pyi +0 -53
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/commands.pyi +0 -111
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/query.pyi +0 -52
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/result.pyi +0 -7
- package/dist/typeshed-fallback/stubs/redis/redis/commands/sentinel.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/__init__.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/commands.pyi +0 -160
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/info.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/utils.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/connection.pyi +0 -289
- package/dist/typeshed-fallback/stubs/redis/redis/crc.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/credentials.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/exceptions.pyi +0 -42
- package/dist/typeshed-fallback/stubs/redis/redis/lock.pyi +0 -56
- package/dist/typeshed-fallback/stubs/redis/redis/ocsp.pyi +0 -21
- package/dist/typeshed-fallback/stubs/redis/redis/retry.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/sentinel.pyi +0 -62
- package/dist/typeshed-fallback/stubs/redis/redis/typing.pyi +0 -34
- package/dist/typeshed-fallback/stubs/redis/redis/utils.pyi +0 -22
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py310.pyi +0 -9
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +0 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py312.pyi +0 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py39.pyi +0 -7
- /package/dist/typeshed-fallback/stdlib/zipfile/{_path.pyi → _path/__init__.pyi} +0 -0
- /package/dist/typeshed-fallback/stubs/{setuptools/setuptools/compat → Authlib/authlib/common}/__init__.pyi +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2 import OAuth2Error as OAuth2Error
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"OAuth2Error",
|
|
7
|
+
"InsecureTransportError",
|
|
8
|
+
"InvalidRequestError",
|
|
9
|
+
"InvalidClientError",
|
|
10
|
+
"UnauthorizedClientError",
|
|
11
|
+
"InvalidGrantError",
|
|
12
|
+
"UnsupportedResponseTypeError",
|
|
13
|
+
"UnsupportedGrantTypeError",
|
|
14
|
+
"InvalidScopeError",
|
|
15
|
+
"AccessDeniedError",
|
|
16
|
+
"MissingAuthorizationError",
|
|
17
|
+
"UnsupportedTokenTypeError",
|
|
18
|
+
"MissingCodeException",
|
|
19
|
+
"MissingTokenException",
|
|
20
|
+
"MissingTokenTypeException",
|
|
21
|
+
"MismatchingStateException",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
class InsecureTransportError(OAuth2Error):
|
|
25
|
+
error: str
|
|
26
|
+
description: str
|
|
27
|
+
@classmethod
|
|
28
|
+
def check(cls, uri) -> None: ...
|
|
29
|
+
|
|
30
|
+
class InvalidRequestError(OAuth2Error):
|
|
31
|
+
error: str
|
|
32
|
+
|
|
33
|
+
class InvalidClientError(OAuth2Error):
|
|
34
|
+
error: str
|
|
35
|
+
status_code: int
|
|
36
|
+
def get_headers(self): ...
|
|
37
|
+
|
|
38
|
+
class InvalidGrantError(OAuth2Error):
|
|
39
|
+
error: str
|
|
40
|
+
|
|
41
|
+
class UnauthorizedClientError(OAuth2Error):
|
|
42
|
+
error: str
|
|
43
|
+
|
|
44
|
+
class UnsupportedResponseTypeError(OAuth2Error):
|
|
45
|
+
error: str
|
|
46
|
+
response_type: Incomplete
|
|
47
|
+
def __init__(self, response_type) -> None: ...
|
|
48
|
+
def get_error_description(self): ...
|
|
49
|
+
|
|
50
|
+
class UnsupportedGrantTypeError(OAuth2Error):
|
|
51
|
+
error: str
|
|
52
|
+
grant_type: Incomplete
|
|
53
|
+
def __init__(self, grant_type) -> None: ...
|
|
54
|
+
def get_error_description(self): ...
|
|
55
|
+
|
|
56
|
+
class InvalidScopeError(OAuth2Error):
|
|
57
|
+
error: str
|
|
58
|
+
description: str
|
|
59
|
+
|
|
60
|
+
class AccessDeniedError(OAuth2Error):
|
|
61
|
+
error: str
|
|
62
|
+
description: str
|
|
63
|
+
|
|
64
|
+
class ForbiddenError(OAuth2Error):
|
|
65
|
+
status_code: int
|
|
66
|
+
auth_type: Incomplete
|
|
67
|
+
realm: Incomplete
|
|
68
|
+
def __init__(self, auth_type: Incomplete | None = None, realm: Incomplete | None = None) -> None: ...
|
|
69
|
+
def get_headers(self): ...
|
|
70
|
+
|
|
71
|
+
class MissingAuthorizationError(ForbiddenError):
|
|
72
|
+
error: str
|
|
73
|
+
description: str
|
|
74
|
+
|
|
75
|
+
class UnsupportedTokenTypeError(ForbiddenError):
|
|
76
|
+
error: str
|
|
77
|
+
|
|
78
|
+
class MissingCodeException(OAuth2Error):
|
|
79
|
+
error: str
|
|
80
|
+
description: str
|
|
81
|
+
|
|
82
|
+
class MissingTokenException(OAuth2Error):
|
|
83
|
+
error: str
|
|
84
|
+
description: str
|
|
85
|
+
|
|
86
|
+
class MissingTokenTypeException(OAuth2Error):
|
|
87
|
+
error: str
|
|
88
|
+
description: str
|
|
89
|
+
|
|
90
|
+
class MismatchingStateException(OAuth2Error):
|
|
91
|
+
error: str
|
|
92
|
+
description: str
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from .authorization_code import AuthorizationCodeGrant as AuthorizationCodeGrant
|
|
2
|
+
from .base import (
|
|
3
|
+
AuthorizationEndpointMixin as AuthorizationEndpointMixin,
|
|
4
|
+
BaseGrant as BaseGrant,
|
|
5
|
+
TokenEndpointMixin as TokenEndpointMixin,
|
|
6
|
+
)
|
|
7
|
+
from .client_credentials import ClientCredentialsGrant as ClientCredentialsGrant
|
|
8
|
+
from .implicit import ImplicitGrant as ImplicitGrant
|
|
9
|
+
from .refresh_token import RefreshTokenGrant as RefreshTokenGrant
|
|
10
|
+
from .resource_owner_password_credentials import ResourceOwnerPasswordCredentialsGrant as ResourceOwnerPasswordCredentialsGrant
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"BaseGrant",
|
|
14
|
+
"AuthorizationEndpointMixin",
|
|
15
|
+
"TokenEndpointMixin",
|
|
16
|
+
"AuthorizationCodeGrant",
|
|
17
|
+
"ImplicitGrant",
|
|
18
|
+
"ResourceOwnerPasswordCredentialsGrant",
|
|
19
|
+
"ClientCredentialsGrant",
|
|
20
|
+
"RefreshTokenGrant",
|
|
21
|
+
]
|
package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from collections.abc import Collection
|
|
2
|
+
from typing_extensions import TypeAlias
|
|
3
|
+
|
|
4
|
+
from authlib.oauth2 import OAuth2Request
|
|
5
|
+
from authlib.oauth2.rfc6749 import AuthorizationEndpointMixin, BaseGrant, ClientMixin, TokenEndpointMixin
|
|
6
|
+
|
|
7
|
+
_ServerResponse: TypeAlias = tuple[int, str, list[tuple[str, str]]]
|
|
8
|
+
|
|
9
|
+
class AuthorizationCodeGrant(BaseGrant, AuthorizationEndpointMixin, TokenEndpointMixin):
|
|
10
|
+
TOKEN_ENDPOINT_AUTH_METHODS: Collection[str]
|
|
11
|
+
AUTHORIZATION_CODE_LENGTH: int
|
|
12
|
+
RESPONSE_TYPES: Collection[str]
|
|
13
|
+
GRANT_TYPE: str
|
|
14
|
+
def validate_authorization_request(self) -> str: ...
|
|
15
|
+
def create_authorization_response(self, redirect_uri: str, grant_user) -> _ServerResponse: ...
|
|
16
|
+
def validate_token_request(self) -> None: ...
|
|
17
|
+
def create_token_response(self) -> _ServerResponse: ...
|
|
18
|
+
def generate_authorization_code(self) -> str: ...
|
|
19
|
+
def save_authorization_code(self, code: str, request: OAuth2Request) -> None: ...
|
|
20
|
+
def query_authorization_code(self, code: str, client: ClientMixin): ...
|
|
21
|
+
def delete_authorization_code(self, authorization_code) -> None: ...
|
|
22
|
+
def authenticate_user(self, authorization_code): ...
|
|
23
|
+
|
|
24
|
+
def validate_code_authorization_request(grant: AuthorizationCodeGrant) -> str: ...
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable, Collection
|
|
3
|
+
from typing_extensions import TypeAlias
|
|
4
|
+
|
|
5
|
+
from authlib.oauth2 import OAuth2Request
|
|
6
|
+
from authlib.oauth2.rfc6749 import ClientMixin
|
|
7
|
+
|
|
8
|
+
_ServerResponse: TypeAlias = tuple[int, str, list[tuple[str, str]]]
|
|
9
|
+
|
|
10
|
+
class BaseGrant:
|
|
11
|
+
TOKEN_ENDPOINT_AUTH_METHODS: Collection[str]
|
|
12
|
+
GRANT_TYPE: str | None
|
|
13
|
+
TOKEN_RESPONSE_HEADER: Collection[tuple[str, str]]
|
|
14
|
+
prompt: Incomplete
|
|
15
|
+
redirect_uri: Incomplete
|
|
16
|
+
request: OAuth2Request
|
|
17
|
+
server: Incomplete
|
|
18
|
+
def __init__(self, request: OAuth2Request, server) -> None: ...
|
|
19
|
+
@property
|
|
20
|
+
def client(self): ...
|
|
21
|
+
def generate_token(
|
|
22
|
+
self,
|
|
23
|
+
user: Incomplete | None = None,
|
|
24
|
+
scope: str | None = None,
|
|
25
|
+
grant_type: str | None = None,
|
|
26
|
+
expires_in: int | None = None,
|
|
27
|
+
include_refresh_token: bool = True,
|
|
28
|
+
) -> dict[str, str | int]: ...
|
|
29
|
+
def authenticate_token_endpoint_client(self) -> ClientMixin: ...
|
|
30
|
+
def save_token(self, token): ...
|
|
31
|
+
def validate_requested_scope(self) -> None: ...
|
|
32
|
+
def register_hook(self, hook_type: str, hook: Callable[..., Incomplete]) -> None: ...
|
|
33
|
+
def execute_hook(self, hook_type: str, *args: object, **kwargs: object) -> None: ...
|
|
34
|
+
|
|
35
|
+
class TokenEndpointMixin:
|
|
36
|
+
TOKEN_ENDPOINT_HTTP_METHODS: Incomplete
|
|
37
|
+
GRANT_TYPE: Incomplete
|
|
38
|
+
@classmethod
|
|
39
|
+
def check_token_endpoint(cls, request: OAuth2Request): ...
|
|
40
|
+
def validate_token_request(self) -> None: ...
|
|
41
|
+
def create_token_response(self) -> _ServerResponse: ...
|
|
42
|
+
|
|
43
|
+
class AuthorizationEndpointMixin:
|
|
44
|
+
RESPONSE_TYPES: Collection[str]
|
|
45
|
+
ERROR_RESPONSE_FRAGMENT: bool
|
|
46
|
+
@classmethod
|
|
47
|
+
def check_authorization_endpoint(cls, request: OAuth2Request) -> bool: ...
|
|
48
|
+
@staticmethod
|
|
49
|
+
def validate_authorization_redirect_uri(request: OAuth2Request, client: ClientMixin) -> str: ...
|
|
50
|
+
@staticmethod
|
|
51
|
+
def validate_no_multiple_request_parameter(request: OAuth2Request): ...
|
|
52
|
+
redirect_uri: Incomplete
|
|
53
|
+
def validate_consent_request(self) -> None: ...
|
|
54
|
+
def validate_authorization_request(self) -> str: ...
|
|
55
|
+
def create_authorization_response(self, redirect_uri: str, grant_user) -> _ServerResponse: ...
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc6749 import AuthorizationEndpointMixin, BaseGrant
|
|
4
|
+
|
|
5
|
+
class ImplicitGrant(BaseGrant, AuthorizationEndpointMixin):
|
|
6
|
+
AUTHORIZATION_ENDPOINT: bool
|
|
7
|
+
TOKEN_ENDPOINT_AUTH_METHODS: Incomplete
|
|
8
|
+
RESPONSE_TYPES: Incomplete
|
|
9
|
+
GRANT_TYPE: str
|
|
10
|
+
ERROR_RESPONSE_FRAGMENT: bool
|
|
11
|
+
def validate_authorization_request(self): ...
|
|
12
|
+
def create_authorization_response(self, redirect_uri, grant_user): ...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing_extensions import TypeAlias
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc6749 import BaseGrant, TokenEndpointMixin, TokenMixin
|
|
4
|
+
|
|
5
|
+
_ServerResponse: TypeAlias = tuple[int, str, list[tuple[str, str]]]
|
|
6
|
+
|
|
7
|
+
class RefreshTokenGrant(BaseGrant, TokenEndpointMixin):
|
|
8
|
+
GRANT_TYPE: str
|
|
9
|
+
INCLUDE_NEW_REFRESH_TOKEN: bool
|
|
10
|
+
def validate_token_request(self) -> None: ...
|
|
11
|
+
def create_token_response(self) -> _ServerResponse: ...
|
|
12
|
+
def issue_token(self, user, refresh_token: TokenMixin) -> dict[str, str | int]: ...
|
|
13
|
+
def authenticate_refresh_token(self, refresh_token: str) -> TokenMixin: ...
|
|
14
|
+
def authenticate_user(self, refresh_token): ...
|
|
15
|
+
def revoke_old_credential(self, refresh_token: TokenMixin) -> None: ...
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from authlib.oauth2.rfc6749 import BaseGrant, TokenEndpointMixin
|
|
2
|
+
|
|
3
|
+
class ResourceOwnerPasswordCredentialsGrant(BaseGrant, TokenEndpointMixin):
|
|
4
|
+
GRANT_TYPE: str
|
|
5
|
+
def validate_token_request(self) -> None: ...
|
|
6
|
+
def create_token_response(self): ...
|
|
7
|
+
def authenticate_user(self, username, password) -> None: ...
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from collections.abc import Collection
|
|
2
|
+
|
|
3
|
+
class ClientMixin:
|
|
4
|
+
def get_client_id(self) -> str: ...
|
|
5
|
+
def get_default_redirect_uri(self) -> str: ...
|
|
6
|
+
def get_allowed_scope(self, scope: Collection[str] | str) -> str: ...
|
|
7
|
+
def check_redirect_uri(self, redirect_uri: str) -> bool: ...
|
|
8
|
+
def check_client_secret(self, client_secret: str) -> bool: ...
|
|
9
|
+
def check_endpoint_auth_method(self, method: str, endpoint: str) -> bool: ...
|
|
10
|
+
def check_response_type(self, response_type: str) -> bool: ...
|
|
11
|
+
def check_grant_type(self, grant_type: str) -> bool: ...
|
|
12
|
+
|
|
13
|
+
class AuthorizationCodeMixin:
|
|
14
|
+
def get_redirect_uri(self) -> str: ...
|
|
15
|
+
def get_scope(self) -> str: ...
|
|
16
|
+
|
|
17
|
+
class TokenMixin:
|
|
18
|
+
def check_client(self, client) -> bool: ...
|
|
19
|
+
def get_scope(self) -> str: ...
|
|
20
|
+
def get_expires_in(self) -> int: ...
|
|
21
|
+
def is_expired(self) -> bool: ...
|
|
22
|
+
def is_revoked(self) -> bool: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
def prepare_grant_uri(
|
|
4
|
+
uri,
|
|
5
|
+
client_id,
|
|
6
|
+
response_type,
|
|
7
|
+
redirect_uri: Incomplete | None = None,
|
|
8
|
+
scope: Incomplete | None = None,
|
|
9
|
+
state: Incomplete | None = None,
|
|
10
|
+
**kwargs,
|
|
11
|
+
): ...
|
|
12
|
+
def prepare_token_request(grant_type, body: str = "", redirect_uri: Incomplete | None = None, **kwargs): ...
|
|
13
|
+
def parse_authorization_code_response(uri, state: Incomplete | None = None): ...
|
|
14
|
+
def parse_implicit_response(uri, state: Incomplete | None = None): ...
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
|
|
4
|
+
from authlib.oauth2.rfc6749 import ClientMixin
|
|
5
|
+
|
|
6
|
+
class OAuth2Request:
|
|
7
|
+
method: str
|
|
8
|
+
uri: str
|
|
9
|
+
body: Mapping[str, str] | None
|
|
10
|
+
headers: Mapping[str, str] | None
|
|
11
|
+
client: ClientMixin | None
|
|
12
|
+
auth_method: str | None
|
|
13
|
+
user: Incomplete | None
|
|
14
|
+
authorization_code: Incomplete | None
|
|
15
|
+
refresh_token: Incomplete | None
|
|
16
|
+
credential: Incomplete | None
|
|
17
|
+
def __init__(
|
|
18
|
+
self, method: str, uri: str, body: Mapping[str, str] | None = None, headers: Mapping[str, str] | None = None
|
|
19
|
+
) -> None: ...
|
|
20
|
+
@property
|
|
21
|
+
def args(self) -> dict[str, str | None]: ...
|
|
22
|
+
@property
|
|
23
|
+
def form(self) -> dict[str, str]: ...
|
|
24
|
+
@property
|
|
25
|
+
def data(self) -> dict[str, str]: ...
|
|
26
|
+
@property
|
|
27
|
+
def datalist(self) -> dict[str, list[Incomplete]]: ...
|
|
28
|
+
@property
|
|
29
|
+
def client_id(self) -> str: ...
|
|
30
|
+
@property
|
|
31
|
+
def response_type(self) -> str: ...
|
|
32
|
+
@property
|
|
33
|
+
def grant_type(self) -> str: ...
|
|
34
|
+
@property
|
|
35
|
+
def redirect_uri(self) -> str: ...
|
|
36
|
+
@property
|
|
37
|
+
def scope(self) -> str: ...
|
|
38
|
+
@property
|
|
39
|
+
def state(self) -> str | None: ...
|
|
40
|
+
|
|
41
|
+
class JsonRequest:
|
|
42
|
+
method: Incomplete
|
|
43
|
+
uri: Incomplete
|
|
44
|
+
body: Incomplete
|
|
45
|
+
headers: Incomplete
|
|
46
|
+
def __init__(self, method, uri, body: Incomplete | None = None, headers: Incomplete | None = None) -> None: ...
|
|
47
|
+
@property
|
|
48
|
+
def data(self): ...
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class TokenValidator:
|
|
4
|
+
TOKEN_TYPE: str
|
|
5
|
+
realm: Incomplete
|
|
6
|
+
extra_attributes: Incomplete
|
|
7
|
+
def __init__(self, realm: Incomplete | None = None, **extra_attributes) -> None: ...
|
|
8
|
+
@staticmethod
|
|
9
|
+
def scope_insufficient(token_scopes, required_scopes): ...
|
|
10
|
+
def authenticate_token(self, token_string) -> None: ...
|
|
11
|
+
def validate_request(self, request) -> None: ...
|
|
12
|
+
def validate_token(self, token, scopes, request) -> None: ...
|
|
13
|
+
|
|
14
|
+
class ResourceProtector:
|
|
15
|
+
def __init__(self) -> None: ...
|
|
16
|
+
def register_token_validator(self, validator: TokenValidator): ...
|
|
17
|
+
def get_token_validator(self, token_type): ...
|
|
18
|
+
def parse_request_authorization(self, request): ...
|
|
19
|
+
def validate_request(self, scopes, request, **kwargs): ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class TokenEndpoint:
|
|
4
|
+
ENDPOINT_NAME: Incomplete
|
|
5
|
+
SUPPORTED_TOKEN_TYPES: Incomplete
|
|
6
|
+
CLIENT_AUTH_METHODS: Incomplete
|
|
7
|
+
server: Incomplete
|
|
8
|
+
def __init__(self, server) -> None: ...
|
|
9
|
+
def __call__(self, request): ...
|
|
10
|
+
def create_endpoint_request(self, request): ...
|
|
11
|
+
def authenticate_endpoint_client(self, request): ...
|
|
12
|
+
def authenticate_token(self, request, client) -> None: ...
|
|
13
|
+
def create_endpoint_response(self, request) -> None: ...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from .errors import InsufficientScopeError as InsufficientScopeError, InvalidTokenError as InvalidTokenError
|
|
2
|
+
from .parameters import add_bearer_token as add_bearer_token
|
|
3
|
+
from .token import BearerTokenGenerator as BearerTokenGenerator
|
|
4
|
+
from .validator import BearerTokenValidator as BearerTokenValidator
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"InvalidTokenError",
|
|
8
|
+
"InsufficientScopeError",
|
|
9
|
+
"add_bearer_token",
|
|
10
|
+
"BearerToken",
|
|
11
|
+
"BearerTokenGenerator",
|
|
12
|
+
"BearerTokenValidator",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
BearerToken = BearerTokenGenerator
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2 import OAuth2Error
|
|
4
|
+
|
|
5
|
+
__all__ = ["InvalidTokenError", "InsufficientScopeError"]
|
|
6
|
+
|
|
7
|
+
class InvalidTokenError(OAuth2Error):
|
|
8
|
+
error: str
|
|
9
|
+
description: str
|
|
10
|
+
status_code: int
|
|
11
|
+
realm: Incomplete
|
|
12
|
+
extra_attributes: Incomplete
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
description: Incomplete | None = None,
|
|
16
|
+
uri: Incomplete | None = None,
|
|
17
|
+
status_code: Incomplete | None = None,
|
|
18
|
+
state: Incomplete | None = None,
|
|
19
|
+
realm: Incomplete | None = None,
|
|
20
|
+
**extra_attributes,
|
|
21
|
+
) -> None: ...
|
|
22
|
+
def get_headers(self): ...
|
|
23
|
+
|
|
24
|
+
class InsufficientScopeError(OAuth2Error):
|
|
25
|
+
error: str
|
|
26
|
+
description: str
|
|
27
|
+
status_code: int
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
def add_to_uri(token, uri): ...
|
|
4
|
+
def add_to_headers(token, headers: Incomplete | None = None): ...
|
|
5
|
+
def add_to_body(token, body: Incomplete | None = None): ...
|
|
6
|
+
def add_bearer_token(token, uri, headers, body, placement: str = "header"): ...
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from typing import Protocol
|
|
4
|
+
|
|
5
|
+
from authlib.oauth2.rfc6749 import ClientMixin
|
|
6
|
+
|
|
7
|
+
class _TokenGenerator(Protocol):
|
|
8
|
+
def __call__(self, *, client: ClientMixin, grant_type: str, user, scope: str) -> str: ...
|
|
9
|
+
|
|
10
|
+
class BearerTokenGenerator:
|
|
11
|
+
DEFAULT_EXPIRES_IN: int
|
|
12
|
+
GRANT_TYPES_EXPIRES_IN: dict[str, int]
|
|
13
|
+
access_token_generator: _TokenGenerator
|
|
14
|
+
refresh_token_generator: _TokenGenerator
|
|
15
|
+
expires_generator: Callable[[ClientMixin, str], int]
|
|
16
|
+
def __init__(
|
|
17
|
+
self,
|
|
18
|
+
access_token_generator: _TokenGenerator,
|
|
19
|
+
refresh_token_generator: _TokenGenerator | None = None,
|
|
20
|
+
expires_generator: Callable[[ClientMixin, str], int] | None = None,
|
|
21
|
+
) -> None: ...
|
|
22
|
+
@staticmethod
|
|
23
|
+
def get_allowed_scope(client: ClientMixin, scope: str) -> str: ...
|
|
24
|
+
def generate(
|
|
25
|
+
self,
|
|
26
|
+
grant_type: str,
|
|
27
|
+
client: ClientMixin,
|
|
28
|
+
user: Incomplete | None = None,
|
|
29
|
+
scope: str | None = None,
|
|
30
|
+
expires_in: int | None = None,
|
|
31
|
+
include_refresh_token: bool = True,
|
|
32
|
+
) -> dict[str, str | int]: ...
|
|
33
|
+
def __call__(
|
|
34
|
+
self,
|
|
35
|
+
grant_type: str,
|
|
36
|
+
client: ClientMixin,
|
|
37
|
+
user: Incomplete | None = None,
|
|
38
|
+
scope: str | None = None,
|
|
39
|
+
expires_in: int | None = None,
|
|
40
|
+
include_refresh_token: bool = True,
|
|
41
|
+
) -> dict[str, str | int]: ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from authlib.oauth2.rfc6749 import TokenEndpoint
|
|
2
|
+
|
|
3
|
+
class RevocationEndpoint(TokenEndpoint):
|
|
4
|
+
ENDPOINT_NAME: str
|
|
5
|
+
def authenticate_token(self, request, client): ...
|
|
6
|
+
def check_params(self, request, client) -> None: ...
|
|
7
|
+
def create_endpoint_response(self, request): ...
|
|
8
|
+
def query_token(self, token_string, token_type_hint) -> None: ...
|
|
9
|
+
def revoke_token(self, token, request) -> None: ...
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2 import OAuth2Error
|
|
4
|
+
|
|
5
|
+
class AssertionClient:
|
|
6
|
+
DEFAULT_GRANT_TYPE: Incomplete
|
|
7
|
+
ASSERTION_METHODS: Incomplete
|
|
8
|
+
token_auth_class: Incomplete
|
|
9
|
+
oauth_error_class = OAuth2Error
|
|
10
|
+
session: Incomplete
|
|
11
|
+
token_endpoint: Incomplete
|
|
12
|
+
grant_type: Incomplete
|
|
13
|
+
issuer: Incomplete
|
|
14
|
+
subject: Incomplete
|
|
15
|
+
audience: Incomplete
|
|
16
|
+
claims: Incomplete
|
|
17
|
+
scope: Incomplete
|
|
18
|
+
token_auth: Incomplete
|
|
19
|
+
leeway: Incomplete
|
|
20
|
+
def __init__(
|
|
21
|
+
self,
|
|
22
|
+
session,
|
|
23
|
+
token_endpoint,
|
|
24
|
+
issuer,
|
|
25
|
+
subject,
|
|
26
|
+
audience: Incomplete | None = None,
|
|
27
|
+
grant_type: Incomplete | None = None,
|
|
28
|
+
claims: Incomplete | None = None,
|
|
29
|
+
token_placement: str = "header",
|
|
30
|
+
scope: Incomplete | None = None,
|
|
31
|
+
leeway: int = 60,
|
|
32
|
+
**kwargs,
|
|
33
|
+
) -> None: ...
|
|
34
|
+
@property
|
|
35
|
+
def token(self): ...
|
|
36
|
+
@token.setter
|
|
37
|
+
def token(self, token) -> None: ...
|
|
38
|
+
def refresh_token(self): ...
|
|
39
|
+
def parse_response_token(self, resp): ...
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from .assertion import client_secret_jwt_sign as client_secret_jwt_sign, private_key_jwt_sign as private_key_jwt_sign
|
|
2
|
+
from .auth import ClientSecretJWT as ClientSecretJWT, PrivateKeyJWT as PrivateKeyJWT
|
|
3
|
+
from .client import JWTBearerClientAssertion as JWTBearerClientAssertion
|
|
4
|
+
from .jwt_bearer import JWTBearerGrant as JWTBearerGrant
|
|
5
|
+
from .token import JWTBearerTokenGenerator as JWTBearerTokenGenerator
|
|
6
|
+
from .validator import JWTBearerToken as JWTBearerToken, JWTBearerTokenValidator as JWTBearerTokenValidator
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"JWTBearerGrant",
|
|
10
|
+
"JWTBearerClientAssertion",
|
|
11
|
+
"client_secret_jwt_sign",
|
|
12
|
+
"private_key_jwt_sign",
|
|
13
|
+
"ClientSecretJWT",
|
|
14
|
+
"PrivateKeyJWT",
|
|
15
|
+
"JWTBearerToken",
|
|
16
|
+
"JWTBearerTokenGenerator",
|
|
17
|
+
"JWTBearerTokenValidator",
|
|
18
|
+
]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
def sign_jwt_bearer_assertion(
|
|
4
|
+
key,
|
|
5
|
+
issuer,
|
|
6
|
+
audience,
|
|
7
|
+
subject: Incomplete | None = None,
|
|
8
|
+
issued_at: Incomplete | None = None,
|
|
9
|
+
expires_at: Incomplete | None = None,
|
|
10
|
+
claims: Incomplete | None = None,
|
|
11
|
+
header: Incomplete | None = None,
|
|
12
|
+
**kwargs,
|
|
13
|
+
): ...
|
|
14
|
+
def client_secret_jwt_sign(
|
|
15
|
+
client_secret, client_id, token_endpoint, alg: str = "HS256", claims: Incomplete | None = None, **kwargs
|
|
16
|
+
): ...
|
|
17
|
+
def private_key_jwt_sign(
|
|
18
|
+
private_key, client_id, token_endpoint, alg: str = "RS256", claims: Incomplete | None = None, **kwargs
|
|
19
|
+
): ...
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class ClientSecretJWT:
|
|
4
|
+
name: str
|
|
5
|
+
alg: str
|
|
6
|
+
token_endpoint: Incomplete
|
|
7
|
+
claims: Incomplete
|
|
8
|
+
headers: Incomplete
|
|
9
|
+
def __init__(
|
|
10
|
+
self,
|
|
11
|
+
token_endpoint: Incomplete | None = None,
|
|
12
|
+
claims: Incomplete | None = None,
|
|
13
|
+
headers: Incomplete | None = None,
|
|
14
|
+
alg: Incomplete | None = None,
|
|
15
|
+
) -> None: ...
|
|
16
|
+
def sign(self, auth, token_endpoint): ...
|
|
17
|
+
def __call__(self, auth, method, uri, headers, body): ...
|
|
18
|
+
|
|
19
|
+
class PrivateKeyJWT(ClientSecretJWT):
|
|
20
|
+
name: str
|
|
21
|
+
alg: str
|
|
22
|
+
def sign(self, auth, token_endpoint): ...
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
ASSERTION_TYPE: str
|
|
4
|
+
|
|
5
|
+
class JWTBearerClientAssertion:
|
|
6
|
+
CLIENT_ASSERTION_TYPE = ASSERTION_TYPE
|
|
7
|
+
CLIENT_AUTH_METHOD: str
|
|
8
|
+
token_url: Incomplete
|
|
9
|
+
def __init__(self, token_url, validate_jti: bool = True) -> None: ...
|
|
10
|
+
def __call__(self, query_client, request): ...
|
|
11
|
+
def create_claims_options(self): ...
|
|
12
|
+
def process_assertion_claims(self, assertion, resolve_key): ...
|
|
13
|
+
def authenticate_client(self, client): ...
|
|
14
|
+
def create_resolve_key_func(self, query_client, request): ...
|
|
15
|
+
def validate_jti(self, claims, jti) -> None: ...
|
|
16
|
+
def resolve_client_public_key(self, client, headers) -> None: ...
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc6749 import BaseGrant, TokenEndpointMixin
|
|
4
|
+
|
|
5
|
+
JWT_BEARER_GRANT_TYPE: str
|
|
6
|
+
|
|
7
|
+
class JWTBearerGrant(BaseGrant, TokenEndpointMixin):
|
|
8
|
+
GRANT_TYPE = JWT_BEARER_GRANT_TYPE
|
|
9
|
+
CLAIMS_OPTIONS: Incomplete
|
|
10
|
+
@staticmethod
|
|
11
|
+
def sign(
|
|
12
|
+
key,
|
|
13
|
+
issuer,
|
|
14
|
+
audience,
|
|
15
|
+
subject: Incomplete | None = None,
|
|
16
|
+
issued_at: Incomplete | None = None,
|
|
17
|
+
expires_at: Incomplete | None = None,
|
|
18
|
+
claims: Incomplete | None = None,
|
|
19
|
+
**kwargs,
|
|
20
|
+
): ...
|
|
21
|
+
def process_assertion_claims(self, assertion): ...
|
|
22
|
+
def resolve_public_key(self, headers, payload): ...
|
|
23
|
+
def validate_token_request(self) -> None: ...
|
|
24
|
+
def create_token_response(self): ...
|
|
25
|
+
def resolve_issuer_client(self, issuer) -> None: ...
|
|
26
|
+
def resolve_client_key(self, client, headers, payload) -> None: ...
|
|
27
|
+
def authenticate_user(self, subject) -> None: ...
|
|
28
|
+
def has_granted_permission(self, client, user) -> None: ...
|