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,39 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth1 import ClientAuth
|
|
4
|
+
|
|
5
|
+
class OAuth1Client:
|
|
6
|
+
auth_class: type[ClientAuth] = ...
|
|
7
|
+
session: Incomplete
|
|
8
|
+
auth: Incomplete
|
|
9
|
+
def __init__(
|
|
10
|
+
self,
|
|
11
|
+
session,
|
|
12
|
+
client_id,
|
|
13
|
+
client_secret: Incomplete | None = None,
|
|
14
|
+
token: Incomplete | None = None,
|
|
15
|
+
token_secret: Incomplete | None = None,
|
|
16
|
+
redirect_uri: Incomplete | None = None,
|
|
17
|
+
rsa_key: Incomplete | None = None,
|
|
18
|
+
verifier: Incomplete | None = None,
|
|
19
|
+
signature_method="HMAC-SHA1",
|
|
20
|
+
signature_type="HEADER",
|
|
21
|
+
force_include_body: bool = False,
|
|
22
|
+
realm: Incomplete | None = None,
|
|
23
|
+
**kwargs,
|
|
24
|
+
) -> None: ...
|
|
25
|
+
@property
|
|
26
|
+
def redirect_uri(self): ...
|
|
27
|
+
@redirect_uri.setter
|
|
28
|
+
def redirect_uri(self, uri) -> None: ...
|
|
29
|
+
@property
|
|
30
|
+
def token(self): ...
|
|
31
|
+
@token.setter
|
|
32
|
+
def token(self, token) -> None: ...
|
|
33
|
+
def create_authorization_url(self, url, request_token: Incomplete | None = None, **kwargs): ...
|
|
34
|
+
def fetch_request_token(self, url, **kwargs): ...
|
|
35
|
+
def fetch_access_token(self, url, verifier: Incomplete | None = None, **kwargs): ...
|
|
36
|
+
def parse_authorization_response(self, url): ...
|
|
37
|
+
def parse_response_token(self, status_code, text): ...
|
|
38
|
+
@staticmethod
|
|
39
|
+
def handle_error(error_type, error_description) -> None: ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from authlib.oauth1.rfc5849.errors import *
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from .authorization_server import AuthorizationServer as AuthorizationServer
|
|
2
|
+
from .client_auth import ClientAuth as ClientAuth
|
|
3
|
+
from .models import (
|
|
4
|
+
ClientMixin as ClientMixin,
|
|
5
|
+
TemporaryCredential as TemporaryCredential,
|
|
6
|
+
TemporaryCredentialMixin as TemporaryCredentialMixin,
|
|
7
|
+
TokenCredentialMixin as TokenCredentialMixin,
|
|
8
|
+
)
|
|
9
|
+
from .resource_protector import ResourceProtector as ResourceProtector
|
|
10
|
+
from .signature import (
|
|
11
|
+
SIGNATURE_HMAC_SHA1 as SIGNATURE_HMAC_SHA1,
|
|
12
|
+
SIGNATURE_PLAINTEXT as SIGNATURE_PLAINTEXT,
|
|
13
|
+
SIGNATURE_RSA_SHA1 as SIGNATURE_RSA_SHA1,
|
|
14
|
+
SIGNATURE_TYPE_BODY as SIGNATURE_TYPE_BODY,
|
|
15
|
+
SIGNATURE_TYPE_HEADER as SIGNATURE_TYPE_HEADER,
|
|
16
|
+
SIGNATURE_TYPE_QUERY as SIGNATURE_TYPE_QUERY,
|
|
17
|
+
)
|
|
18
|
+
from .wrapper import OAuth1Request as OAuth1Request
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"OAuth1Request",
|
|
22
|
+
"ClientAuth",
|
|
23
|
+
"SIGNATURE_HMAC_SHA1",
|
|
24
|
+
"SIGNATURE_RSA_SHA1",
|
|
25
|
+
"SIGNATURE_PLAINTEXT",
|
|
26
|
+
"SIGNATURE_TYPE_HEADER",
|
|
27
|
+
"SIGNATURE_TYPE_QUERY",
|
|
28
|
+
"SIGNATURE_TYPE_BODY",
|
|
29
|
+
"ClientMixin",
|
|
30
|
+
"TemporaryCredentialMixin",
|
|
31
|
+
"TokenCredentialMixin",
|
|
32
|
+
"TemporaryCredential",
|
|
33
|
+
"AuthorizationServer",
|
|
34
|
+
"ResourceProtector",
|
|
35
|
+
]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth1.rfc5849.base_server import BaseServer
|
|
4
|
+
|
|
5
|
+
class AuthorizationServer(BaseServer):
|
|
6
|
+
TOKEN_RESPONSE_HEADER: Incomplete
|
|
7
|
+
TEMPORARY_CREDENTIALS_METHOD: str
|
|
8
|
+
def create_oauth1_request(self, request) -> None: ...
|
|
9
|
+
def handle_response(self, status_code, payload, headers) -> None: ...
|
|
10
|
+
def handle_error_response(self, error): ...
|
|
11
|
+
def validate_temporary_credentials_request(self, request): ...
|
|
12
|
+
def create_temporary_credentials_response(self, request: Incomplete | None = None): ...
|
|
13
|
+
def validate_authorization_request(self, request): ...
|
|
14
|
+
def create_authorization_response(self, request, grant_user: Incomplete | None = None): ...
|
|
15
|
+
def validate_token_request(self, request): ...
|
|
16
|
+
def create_token_response(self, request): ...
|
|
17
|
+
def create_temporary_credential(self, request) -> None: ...
|
|
18
|
+
def get_temporary_credential(self, request) -> None: ...
|
|
19
|
+
def delete_temporary_credential(self, request) -> None: ...
|
|
20
|
+
def create_authorization_verifier(self, request) -> None: ...
|
|
21
|
+
def create_token_credential(self, request) -> None: ...
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class BaseServer:
|
|
4
|
+
SIGNATURE_METHODS: Incomplete
|
|
5
|
+
SUPPORTED_SIGNATURE_METHODS: Incomplete
|
|
6
|
+
EXPIRY_TIME: int
|
|
7
|
+
@classmethod
|
|
8
|
+
def register_signature_method(cls, name, verify) -> None: ...
|
|
9
|
+
def validate_timestamp_and_nonce(self, request) -> None: ...
|
|
10
|
+
def validate_oauth_signature(self, request) -> None: ...
|
|
11
|
+
def get_client_by_id(self, client_id) -> None: ...
|
|
12
|
+
def exists_nonce(self, nonce, request) -> None: ...
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
CONTENT_TYPE_FORM_URLENCODED: str
|
|
4
|
+
CONTENT_TYPE_MULTI_PART: str
|
|
5
|
+
|
|
6
|
+
class ClientAuth:
|
|
7
|
+
SIGNATURE_METHODS: Incomplete
|
|
8
|
+
@classmethod
|
|
9
|
+
def register_signature_method(cls, name, sign) -> None: ...
|
|
10
|
+
client_id: Incomplete
|
|
11
|
+
client_secret: Incomplete
|
|
12
|
+
token: Incomplete
|
|
13
|
+
token_secret: Incomplete
|
|
14
|
+
redirect_uri: Incomplete
|
|
15
|
+
signature_method: Incomplete
|
|
16
|
+
signature_type: Incomplete
|
|
17
|
+
rsa_key: Incomplete
|
|
18
|
+
verifier: Incomplete
|
|
19
|
+
realm: Incomplete
|
|
20
|
+
force_include_body: Incomplete
|
|
21
|
+
def __init__(
|
|
22
|
+
self,
|
|
23
|
+
client_id,
|
|
24
|
+
client_secret: Incomplete | None = None,
|
|
25
|
+
token: Incomplete | None = None,
|
|
26
|
+
token_secret: Incomplete | None = None,
|
|
27
|
+
redirect_uri: Incomplete | None = None,
|
|
28
|
+
rsa_key: Incomplete | None = None,
|
|
29
|
+
verifier: Incomplete | None = None,
|
|
30
|
+
signature_method="HMAC-SHA1",
|
|
31
|
+
signature_type="HEADER",
|
|
32
|
+
realm: Incomplete | None = None,
|
|
33
|
+
force_include_body: bool = False,
|
|
34
|
+
) -> None: ...
|
|
35
|
+
def get_oauth_signature(self, method, uri, headers, body): ...
|
|
36
|
+
def get_oauth_params(self, nonce, timestamp): ...
|
|
37
|
+
def sign(self, method, uri, headers, body): ...
|
|
38
|
+
def prepare(self, method, uri, headers, body): ...
|
|
39
|
+
|
|
40
|
+
def generate_nonce(): ...
|
|
41
|
+
def generate_timestamp(): ...
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.common.errors import AuthlibHTTPError
|
|
4
|
+
|
|
5
|
+
class OAuth1Error(AuthlibHTTPError):
|
|
6
|
+
def __init__(
|
|
7
|
+
self, description: Incomplete | None = None, uri: Incomplete | None = None, status_code: Incomplete | None = None
|
|
8
|
+
) -> None: ...
|
|
9
|
+
def get_headers(self): ...
|
|
10
|
+
|
|
11
|
+
class InsecureTransportError(OAuth1Error):
|
|
12
|
+
error: str
|
|
13
|
+
description: str
|
|
14
|
+
@classmethod
|
|
15
|
+
def check(cls, uri) -> None: ...
|
|
16
|
+
|
|
17
|
+
class InvalidRequestError(OAuth1Error):
|
|
18
|
+
error: str
|
|
19
|
+
|
|
20
|
+
class UnsupportedParameterError(OAuth1Error):
|
|
21
|
+
error: str
|
|
22
|
+
|
|
23
|
+
class UnsupportedSignatureMethodError(OAuth1Error):
|
|
24
|
+
error: str
|
|
25
|
+
|
|
26
|
+
class MissingRequiredParameterError(OAuth1Error):
|
|
27
|
+
error: str
|
|
28
|
+
def __init__(self, key) -> None: ...
|
|
29
|
+
|
|
30
|
+
class DuplicatedOAuthProtocolParameterError(OAuth1Error):
|
|
31
|
+
error: str
|
|
32
|
+
|
|
33
|
+
class InvalidClientError(OAuth1Error):
|
|
34
|
+
error: str
|
|
35
|
+
status_code: int
|
|
36
|
+
|
|
37
|
+
class InvalidTokenError(OAuth1Error):
|
|
38
|
+
error: str
|
|
39
|
+
description: str
|
|
40
|
+
status_code: int
|
|
41
|
+
|
|
42
|
+
class InvalidSignatureError(OAuth1Error):
|
|
43
|
+
error: str
|
|
44
|
+
status_code: int
|
|
45
|
+
|
|
46
|
+
class InvalidNonceError(OAuth1Error):
|
|
47
|
+
error: str
|
|
48
|
+
status_code: int
|
|
49
|
+
|
|
50
|
+
class AccessDeniedError(OAuth1Error):
|
|
51
|
+
error: str
|
|
52
|
+
description: str
|
|
53
|
+
|
|
54
|
+
class MethodNotAllowedError(OAuth1Error):
|
|
55
|
+
error: str
|
|
56
|
+
status_code: int
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class ClientMixin:
|
|
2
|
+
def get_default_redirect_uri(self) -> None: ...
|
|
3
|
+
def get_client_secret(self) -> None: ...
|
|
4
|
+
def get_rsa_public_key(self) -> None: ...
|
|
5
|
+
|
|
6
|
+
class TokenCredentialMixin:
|
|
7
|
+
def get_oauth_token(self) -> None: ...
|
|
8
|
+
def get_oauth_token_secret(self) -> None: ...
|
|
9
|
+
|
|
10
|
+
class TemporaryCredentialMixin(TokenCredentialMixin):
|
|
11
|
+
def get_client_id(self) -> None: ...
|
|
12
|
+
def get_redirect_uri(self) -> None: ...
|
|
13
|
+
def check_verifier(self, verifier) -> None: ...
|
|
14
|
+
|
|
15
|
+
class TemporaryCredential(dict[str, object], TemporaryCredentialMixin):
|
|
16
|
+
def get_client_id(self): ...
|
|
17
|
+
def get_user_id(self): ...
|
|
18
|
+
def get_redirect_uri(self): ...
|
|
19
|
+
def check_verifier(self, verifier): ...
|
|
20
|
+
def get_oauth_token(self): ...
|
|
21
|
+
def get_oauth_token_secret(self): ...
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
SIGNATURE_HMAC_SHA1: str
|
|
4
|
+
SIGNATURE_RSA_SHA1: str
|
|
5
|
+
SIGNATURE_PLAINTEXT: str
|
|
6
|
+
SIGNATURE_TYPE_HEADER: str
|
|
7
|
+
SIGNATURE_TYPE_QUERY: str
|
|
8
|
+
SIGNATURE_TYPE_BODY: str
|
|
9
|
+
|
|
10
|
+
def construct_base_string(method, uri, params, host: Incomplete | None = None): ...
|
|
11
|
+
def normalize_base_string_uri(uri, host: Incomplete | None = None): ...
|
|
12
|
+
def normalize_parameters(params): ...
|
|
13
|
+
def generate_signature_base_string(request): ...
|
|
14
|
+
def hmac_sha1_signature(base_string, client_secret, token_secret): ...
|
|
15
|
+
def rsa_sha1_signature(base_string, rsa_private_key): ...
|
|
16
|
+
def plaintext_signature(client_secret, token_secret): ...
|
|
17
|
+
def sign_hmac_sha1(client, request): ...
|
|
18
|
+
def sign_rsa_sha1(client, request): ...
|
|
19
|
+
def sign_plaintext(client, request): ...
|
|
20
|
+
def verify_hmac_sha1(request): ...
|
|
21
|
+
def verify_rsa_sha1(request): ...
|
|
22
|
+
def verify_plaintext(request): ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class OAuth1Request:
|
|
4
|
+
method: Incomplete
|
|
5
|
+
uri: Incomplete
|
|
6
|
+
body: Incomplete
|
|
7
|
+
headers: Incomplete
|
|
8
|
+
client: Incomplete
|
|
9
|
+
credential: Incomplete
|
|
10
|
+
user: Incomplete
|
|
11
|
+
query: Incomplete
|
|
12
|
+
query_params: Incomplete
|
|
13
|
+
body_params: Incomplete
|
|
14
|
+
params: Incomplete
|
|
15
|
+
def __init__(self, method, uri, body: Incomplete | None = None, headers: Incomplete | None = None) -> None: ...
|
|
16
|
+
@property
|
|
17
|
+
def client_id(self): ...
|
|
18
|
+
@property
|
|
19
|
+
def client_secret(self): ...
|
|
20
|
+
@property
|
|
21
|
+
def rsa_public_key(self): ...
|
|
22
|
+
@property
|
|
23
|
+
def timestamp(self): ...
|
|
24
|
+
@property
|
|
25
|
+
def redirect_uri(self): ...
|
|
26
|
+
@property
|
|
27
|
+
def signature(self): ...
|
|
28
|
+
@property
|
|
29
|
+
def signature_method(self): ...
|
|
30
|
+
@property
|
|
31
|
+
def token(self): ...
|
|
32
|
+
@property
|
|
33
|
+
def token_secret(self): ...
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from .auth import ClientAuth as ClientAuth, TokenAuth as TokenAuth
|
|
2
|
+
from .base import OAuth2Error as OAuth2Error
|
|
3
|
+
from .client import OAuth2Client as OAuth2Client
|
|
4
|
+
from .rfc6749 import (
|
|
5
|
+
AuthorizationServer as AuthorizationServer,
|
|
6
|
+
ClientAuthentication as ClientAuthentication,
|
|
7
|
+
JsonRequest as JsonRequest,
|
|
8
|
+
OAuth2Request as OAuth2Request,
|
|
9
|
+
ResourceProtector as ResourceProtector,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"OAuth2Error",
|
|
14
|
+
"ClientAuth",
|
|
15
|
+
"TokenAuth",
|
|
16
|
+
"OAuth2Client",
|
|
17
|
+
"OAuth2Request",
|
|
18
|
+
"JsonRequest",
|
|
19
|
+
"AuthorizationServer",
|
|
20
|
+
"ClientAuthentication",
|
|
21
|
+
"ResourceProtector",
|
|
22
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
def encode_client_secret_basic(client, method, uri, headers, body): ...
|
|
4
|
+
def encode_client_secret_post(client, method, uri, headers, body): ...
|
|
5
|
+
def encode_none(client, method, uri, headers, body): ...
|
|
6
|
+
|
|
7
|
+
class ClientAuth:
|
|
8
|
+
DEFAULT_AUTH_METHODS: Incomplete
|
|
9
|
+
client_id: Incomplete
|
|
10
|
+
client_secret: Incomplete
|
|
11
|
+
auth_method: Incomplete
|
|
12
|
+
def __init__(self, client_id, client_secret, auth_method: Incomplete | None = None) -> None: ...
|
|
13
|
+
def prepare(self, method, uri, headers, body): ...
|
|
14
|
+
|
|
15
|
+
class TokenAuth:
|
|
16
|
+
DEFAULT_TOKEN_TYPE: str
|
|
17
|
+
SIGN_METHODS: Incomplete
|
|
18
|
+
token: Incomplete
|
|
19
|
+
token_placement: Incomplete
|
|
20
|
+
client: Incomplete
|
|
21
|
+
hooks: Incomplete
|
|
22
|
+
def __init__(self, token, token_placement: str = "header", client: Incomplete | None = None) -> None: ...
|
|
23
|
+
def set_token(self, token) -> None: ...
|
|
24
|
+
def prepare(self, uri, headers, body): ...
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.common.errors import AuthlibHTTPError
|
|
4
|
+
|
|
5
|
+
class OAuth2Error(AuthlibHTTPError):
|
|
6
|
+
state: Incomplete
|
|
7
|
+
redirect_uri: Incomplete
|
|
8
|
+
redirect_fragment: Incomplete
|
|
9
|
+
def __init__(
|
|
10
|
+
self,
|
|
11
|
+
description: Incomplete | None = None,
|
|
12
|
+
uri: Incomplete | None = None,
|
|
13
|
+
status_code: Incomplete | None = None,
|
|
14
|
+
state: Incomplete | None = None,
|
|
15
|
+
redirect_uri: Incomplete | None = None,
|
|
16
|
+
redirect_fragment: bool = False,
|
|
17
|
+
error: Incomplete | None = None,
|
|
18
|
+
) -> None: ...
|
|
19
|
+
def get_body(self): ...
|
|
20
|
+
def __call__(self, uri: Incomplete | None = None): ...
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2 import ClientAuth, OAuth2Error, TokenAuth
|
|
4
|
+
|
|
5
|
+
DEFAULT_HEADERS: Incomplete
|
|
6
|
+
|
|
7
|
+
class OAuth2Client:
|
|
8
|
+
client_auth_class = ClientAuth
|
|
9
|
+
token_auth_class = TokenAuth
|
|
10
|
+
oauth_error_class = OAuth2Error
|
|
11
|
+
EXTRA_AUTHORIZE_PARAMS: Incomplete
|
|
12
|
+
SESSION_REQUEST_PARAMS: Incomplete
|
|
13
|
+
session: Incomplete
|
|
14
|
+
client_id: Incomplete
|
|
15
|
+
client_secret: Incomplete
|
|
16
|
+
state: Incomplete
|
|
17
|
+
token_endpoint_auth_method: Incomplete
|
|
18
|
+
revocation_endpoint_auth_method: Incomplete
|
|
19
|
+
scope: Incomplete
|
|
20
|
+
redirect_uri: Incomplete
|
|
21
|
+
code_challenge_method: Incomplete
|
|
22
|
+
token_auth: Incomplete
|
|
23
|
+
update_token: Incomplete
|
|
24
|
+
metadata: Incomplete
|
|
25
|
+
compliance_hook: Incomplete
|
|
26
|
+
leeway: Incomplete
|
|
27
|
+
def __init__(
|
|
28
|
+
self,
|
|
29
|
+
session,
|
|
30
|
+
client_id: Incomplete | None = None,
|
|
31
|
+
client_secret: Incomplete | None = None,
|
|
32
|
+
token_endpoint_auth_method: Incomplete | None = None,
|
|
33
|
+
revocation_endpoint_auth_method: Incomplete | None = None,
|
|
34
|
+
scope: Incomplete | None = None,
|
|
35
|
+
state: Incomplete | None = None,
|
|
36
|
+
redirect_uri: Incomplete | None = None,
|
|
37
|
+
code_challenge_method: Incomplete | None = None,
|
|
38
|
+
token: Incomplete | None = None,
|
|
39
|
+
token_placement: str = "header",
|
|
40
|
+
update_token: Incomplete | None = None,
|
|
41
|
+
leeway: int = 60,
|
|
42
|
+
**metadata,
|
|
43
|
+
) -> None: ...
|
|
44
|
+
def register_client_auth_method(self, auth) -> None: ...
|
|
45
|
+
def client_auth(self, auth_method): ...
|
|
46
|
+
@property
|
|
47
|
+
def token(self): ...
|
|
48
|
+
@token.setter
|
|
49
|
+
def token(self, token) -> None: ...
|
|
50
|
+
def create_authorization_url(
|
|
51
|
+
self, url, state: Incomplete | None = None, code_verifier: Incomplete | None = None, **kwargs
|
|
52
|
+
): ...
|
|
53
|
+
def fetch_token(
|
|
54
|
+
self,
|
|
55
|
+
url: Incomplete | None = None,
|
|
56
|
+
body: str = "",
|
|
57
|
+
method: str = "POST",
|
|
58
|
+
headers: Incomplete | None = None,
|
|
59
|
+
auth: Incomplete | None = None,
|
|
60
|
+
grant_type: Incomplete | None = None,
|
|
61
|
+
state: Incomplete | None = None,
|
|
62
|
+
**kwargs,
|
|
63
|
+
): ...
|
|
64
|
+
def token_from_fragment(self, authorization_response, state: Incomplete | None = None): ...
|
|
65
|
+
def refresh_token(
|
|
66
|
+
self,
|
|
67
|
+
url: Incomplete | None = None,
|
|
68
|
+
refresh_token: Incomplete | None = None,
|
|
69
|
+
body: str = "",
|
|
70
|
+
auth: Incomplete | None = None,
|
|
71
|
+
headers: Incomplete | None = None,
|
|
72
|
+
**kwargs,
|
|
73
|
+
): ...
|
|
74
|
+
def ensure_active_token(self, token: Incomplete | None = None): ...
|
|
75
|
+
def revoke_token(
|
|
76
|
+
self,
|
|
77
|
+
url,
|
|
78
|
+
token: Incomplete | None = None,
|
|
79
|
+
token_type_hint: Incomplete | None = None,
|
|
80
|
+
body: Incomplete | None = None,
|
|
81
|
+
auth: Incomplete | None = None,
|
|
82
|
+
headers: Incomplete | None = None,
|
|
83
|
+
**kwargs,
|
|
84
|
+
): ...
|
|
85
|
+
def introspect_token(
|
|
86
|
+
self,
|
|
87
|
+
url,
|
|
88
|
+
token: Incomplete | None = None,
|
|
89
|
+
token_type_hint: Incomplete | None = None,
|
|
90
|
+
body: Incomplete | None = None,
|
|
91
|
+
auth: Incomplete | None = None,
|
|
92
|
+
headers: Incomplete | None = None,
|
|
93
|
+
**kwargs,
|
|
94
|
+
): ...
|
|
95
|
+
def register_compliance_hook(self, hook_type, hook) -> None: ...
|
|
96
|
+
def parse_response_token(self, resp): ...
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
from .authenticate_client import ClientAuthentication as ClientAuthentication
|
|
2
|
+
from .authorization_server import AuthorizationServer as AuthorizationServer
|
|
3
|
+
from .errors import (
|
|
4
|
+
AccessDeniedError as AccessDeniedError,
|
|
5
|
+
InsecureTransportError as InsecureTransportError,
|
|
6
|
+
InvalidClientError as InvalidClientError,
|
|
7
|
+
InvalidGrantError as InvalidGrantError,
|
|
8
|
+
InvalidRequestError as InvalidRequestError,
|
|
9
|
+
InvalidScopeError as InvalidScopeError,
|
|
10
|
+
MismatchingStateException as MismatchingStateException,
|
|
11
|
+
MissingAuthorizationError as MissingAuthorizationError,
|
|
12
|
+
MissingCodeException as MissingCodeException,
|
|
13
|
+
MissingTokenException as MissingTokenException,
|
|
14
|
+
MissingTokenTypeException as MissingTokenTypeException,
|
|
15
|
+
OAuth2Error as OAuth2Error,
|
|
16
|
+
UnauthorizedClientError as UnauthorizedClientError,
|
|
17
|
+
UnsupportedGrantTypeError as UnsupportedGrantTypeError,
|
|
18
|
+
UnsupportedResponseTypeError as UnsupportedResponseTypeError,
|
|
19
|
+
UnsupportedTokenTypeError as UnsupportedTokenTypeError,
|
|
20
|
+
)
|
|
21
|
+
from .grants import (
|
|
22
|
+
AuthorizationCodeGrant as AuthorizationCodeGrant,
|
|
23
|
+
AuthorizationEndpointMixin as AuthorizationEndpointMixin,
|
|
24
|
+
BaseGrant as BaseGrant,
|
|
25
|
+
ClientCredentialsGrant as ClientCredentialsGrant,
|
|
26
|
+
ImplicitGrant as ImplicitGrant,
|
|
27
|
+
RefreshTokenGrant as RefreshTokenGrant,
|
|
28
|
+
ResourceOwnerPasswordCredentialsGrant as ResourceOwnerPasswordCredentialsGrant,
|
|
29
|
+
TokenEndpointMixin as TokenEndpointMixin,
|
|
30
|
+
)
|
|
31
|
+
from .models import AuthorizationCodeMixin as AuthorizationCodeMixin, ClientMixin as ClientMixin, TokenMixin as TokenMixin
|
|
32
|
+
from .requests import JsonRequest as JsonRequest, OAuth2Request as OAuth2Request
|
|
33
|
+
from .resource_protector import ResourceProtector as ResourceProtector, TokenValidator as TokenValidator
|
|
34
|
+
from .token_endpoint import TokenEndpoint as TokenEndpoint
|
|
35
|
+
from .util import list_to_scope as list_to_scope, scope_to_list as scope_to_list
|
|
36
|
+
from .wrappers import OAuth2Token as OAuth2Token
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
"OAuth2Token",
|
|
40
|
+
"OAuth2Request",
|
|
41
|
+
"JsonRequest",
|
|
42
|
+
"OAuth2Error",
|
|
43
|
+
"AccessDeniedError",
|
|
44
|
+
"MissingAuthorizationError",
|
|
45
|
+
"InvalidGrantError",
|
|
46
|
+
"InvalidClientError",
|
|
47
|
+
"InvalidRequestError",
|
|
48
|
+
"InvalidScopeError",
|
|
49
|
+
"InsecureTransportError",
|
|
50
|
+
"UnauthorizedClientError",
|
|
51
|
+
"UnsupportedResponseTypeError",
|
|
52
|
+
"UnsupportedGrantTypeError",
|
|
53
|
+
"UnsupportedTokenTypeError",
|
|
54
|
+
"MissingCodeException",
|
|
55
|
+
"MissingTokenException",
|
|
56
|
+
"MissingTokenTypeException",
|
|
57
|
+
"MismatchingStateException",
|
|
58
|
+
"ClientMixin",
|
|
59
|
+
"AuthorizationCodeMixin",
|
|
60
|
+
"TokenMixin",
|
|
61
|
+
"ClientAuthentication",
|
|
62
|
+
"AuthorizationServer",
|
|
63
|
+
"ResourceProtector",
|
|
64
|
+
"TokenValidator",
|
|
65
|
+
"TokenEndpoint",
|
|
66
|
+
"BaseGrant",
|
|
67
|
+
"AuthorizationEndpointMixin",
|
|
68
|
+
"TokenEndpointMixin",
|
|
69
|
+
"AuthorizationCodeGrant",
|
|
70
|
+
"ImplicitGrant",
|
|
71
|
+
"ResourceOwnerPasswordCredentialsGrant",
|
|
72
|
+
"ClientCredentialsGrant",
|
|
73
|
+
"RefreshTokenGrant",
|
|
74
|
+
"scope_to_list",
|
|
75
|
+
"list_to_scope",
|
|
76
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from collections.abc import Callable, Collection
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2 import OAuth2Request
|
|
4
|
+
from authlib.oauth2.rfc6749 import ClientMixin
|
|
5
|
+
|
|
6
|
+
__all__ = ["ClientAuthentication"]
|
|
7
|
+
|
|
8
|
+
class ClientAuthentication:
|
|
9
|
+
query_client: Callable[[str], ClientMixin]
|
|
10
|
+
def __init__(self, query_client: Callable[[str], ClientMixin]) -> None: ...
|
|
11
|
+
def register(self, method: str, func: Callable[[Callable[[str], ClientMixin], OAuth2Request], ClientMixin]) -> None: ...
|
|
12
|
+
def authenticate(self, request: OAuth2Request, methods: Collection[str], endpoint: str) -> ClientMixin: ...
|
|
13
|
+
def __call__(self, request: OAuth2Request, methods: Collection[str], endpoint: str = "token") -> ClientMixin: ...
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable, Collection, Mapping
|
|
3
|
+
from typing_extensions import TypeAlias
|
|
4
|
+
|
|
5
|
+
from authlib.oauth2 import JsonRequest, OAuth2Error, OAuth2Request
|
|
6
|
+
from authlib.oauth2.rfc6749 import BaseGrant, ClientMixin
|
|
7
|
+
from authlib.oauth2.rfc6750 import BearerTokenGenerator
|
|
8
|
+
|
|
9
|
+
_ServerResponse: TypeAlias = tuple[int, str, list[tuple[str, str]]]
|
|
10
|
+
|
|
11
|
+
class AuthorizationServer:
|
|
12
|
+
scopes_supported: Collection[str] | None
|
|
13
|
+
def __init__(self, scopes_supported: Collection[str] | None = None) -> None: ...
|
|
14
|
+
def query_client(self, client_id: str) -> ClientMixin: ...
|
|
15
|
+
def save_token(self, token: dict[str, str | int], request: OAuth2Request) -> None: ...
|
|
16
|
+
def generate_token(
|
|
17
|
+
self,
|
|
18
|
+
grant_type: str,
|
|
19
|
+
client: ClientMixin,
|
|
20
|
+
user: Incomplete | None = None,
|
|
21
|
+
scope: str | None = None,
|
|
22
|
+
expires_in: int | None = None,
|
|
23
|
+
include_refresh_token: bool = True,
|
|
24
|
+
) -> dict[str, str | int]: ...
|
|
25
|
+
def register_token_generator(self, grant_type: str, func: BearerTokenGenerator) -> None: ...
|
|
26
|
+
def authenticate_client(self, request: OAuth2Request, methods: Collection[str], endpoint: str = "token") -> ClientMixin: ...
|
|
27
|
+
def register_client_auth_method(self, method, func) -> None: ...
|
|
28
|
+
def get_error_uri(self, request, error) -> None: ...
|
|
29
|
+
def send_signal(self, name, *args: object, **kwargs: object) -> None: ...
|
|
30
|
+
def create_oauth2_request(self, request) -> OAuth2Request: ...
|
|
31
|
+
def create_json_request(self, request) -> JsonRequest: ...
|
|
32
|
+
def handle_response(self, status: int, body: Mapping[str, object], headers: Mapping[str, str]) -> object: ...
|
|
33
|
+
def validate_requested_scope(self, scope: str, state: str | None = None) -> None: ...
|
|
34
|
+
def register_grant(
|
|
35
|
+
self, grant_cls: type[BaseGrant], extensions: Collection[Callable[[BaseGrant], None]] | None = None
|
|
36
|
+
) -> None: ...
|
|
37
|
+
def register_endpoint(self, endpoint) -> None: ...
|
|
38
|
+
def get_authorization_grant(self, request: OAuth2Request) -> BaseGrant: ...
|
|
39
|
+
def get_consent_grant(self, request: Incomplete | None = None, end_user: Incomplete | None = None): ...
|
|
40
|
+
def get_token_grant(self, request: OAuth2Request) -> BaseGrant: ...
|
|
41
|
+
def create_endpoint_response(self, name, request: Incomplete | None = None): ...
|
|
42
|
+
def create_authorization_response(
|
|
43
|
+
self, request: Incomplete | None = None, grant_user: Incomplete | None = None
|
|
44
|
+
) -> object: ...
|
|
45
|
+
def create_token_response(self, request: Incomplete | None = None) -> _ServerResponse: ...
|
|
46
|
+
def handle_error_response(self, request: OAuth2Request, error: OAuth2Error) -> object: ...
|