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,30 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class JWTBearerTokenGenerator:
|
|
4
|
+
DEFAULT_EXPIRES_IN: int
|
|
5
|
+
secret_key: Incomplete
|
|
6
|
+
issuer: Incomplete
|
|
7
|
+
alg: Incomplete
|
|
8
|
+
def __init__(self, secret_key, issuer: Incomplete | None = None, alg: str = "RS256") -> None: ...
|
|
9
|
+
@staticmethod
|
|
10
|
+
def get_allowed_scope(client, scope): ...
|
|
11
|
+
@staticmethod
|
|
12
|
+
def get_sub_value(user): ...
|
|
13
|
+
def get_token_data(self, grant_type, client, expires_in, user: Incomplete | None = None, scope: Incomplete | None = None): ...
|
|
14
|
+
def generate(
|
|
15
|
+
self,
|
|
16
|
+
grant_type,
|
|
17
|
+
client,
|
|
18
|
+
user: Incomplete | None = None,
|
|
19
|
+
scope: Incomplete | None = None,
|
|
20
|
+
expires_in: Incomplete | None = None,
|
|
21
|
+
): ...
|
|
22
|
+
def __call__(
|
|
23
|
+
self,
|
|
24
|
+
grant_type,
|
|
25
|
+
client,
|
|
26
|
+
user: Incomplete | None = None,
|
|
27
|
+
scope: Incomplete | None = None,
|
|
28
|
+
expires_in: Incomplete | None = None,
|
|
29
|
+
include_refresh_token: bool = True,
|
|
30
|
+
): ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose import JWTClaims
|
|
4
|
+
from authlib.oauth2.rfc6749 import TokenMixin
|
|
5
|
+
from authlib.oauth2.rfc6750 import BearerTokenValidator
|
|
6
|
+
|
|
7
|
+
logger: Incomplete
|
|
8
|
+
|
|
9
|
+
class JWTBearerToken(TokenMixin, JWTClaims):
|
|
10
|
+
def check_client(self, client): ...
|
|
11
|
+
def get_scope(self): ...
|
|
12
|
+
def get_expires_in(self): ...
|
|
13
|
+
def is_expired(self): ...
|
|
14
|
+
def is_revoked(self): ...
|
|
15
|
+
|
|
16
|
+
class JWTBearerTokenValidator(BearerTokenValidator):
|
|
17
|
+
TOKEN_TYPE: str
|
|
18
|
+
token_cls = JWTBearerToken
|
|
19
|
+
public_key: Incomplete
|
|
20
|
+
claims_options: Incomplete
|
|
21
|
+
def __init__(
|
|
22
|
+
self, public_key, issuer: Incomplete | None = None, realm: Incomplete | None = None, **extra_attributes
|
|
23
|
+
) -> None: ...
|
|
24
|
+
def authenticate_token(self, token_string): ...
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from .claims import ClientMetadataClaims as ClientMetadataClaims
|
|
2
|
+
from .endpoint import ClientRegistrationEndpoint as ClientRegistrationEndpoint
|
|
3
|
+
from .errors import (
|
|
4
|
+
InvalidClientMetadataError as InvalidClientMetadataError,
|
|
5
|
+
InvalidRedirectURIError as InvalidRedirectURIError,
|
|
6
|
+
InvalidSoftwareStatementError as InvalidSoftwareStatementError,
|
|
7
|
+
UnapprovedSoftwareStatementError as UnapprovedSoftwareStatementError,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"ClientMetadataClaims",
|
|
12
|
+
"ClientRegistrationEndpoint",
|
|
13
|
+
"InvalidRedirectURIError",
|
|
14
|
+
"InvalidClientMetadataError",
|
|
15
|
+
"InvalidSoftwareStatementError",
|
|
16
|
+
"UnapprovedSoftwareStatementError",
|
|
17
|
+
]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose import BaseClaims
|
|
4
|
+
|
|
5
|
+
class ClientMetadataClaims(BaseClaims):
|
|
6
|
+
REGISTERED_CLAIMS: Incomplete
|
|
7
|
+
def validate(self) -> None: ...
|
|
8
|
+
def validate_redirect_uris(self) -> None: ...
|
|
9
|
+
def validate_token_endpoint_auth_method(self) -> None: ...
|
|
10
|
+
def validate_grant_types(self) -> None: ...
|
|
11
|
+
def validate_response_types(self) -> None: ...
|
|
12
|
+
def validate_client_name(self) -> None: ...
|
|
13
|
+
def validate_client_uri(self) -> None: ...
|
|
14
|
+
def validate_logo_uri(self) -> None: ...
|
|
15
|
+
def validate_scope(self) -> None: ...
|
|
16
|
+
def validate_contacts(self) -> None: ...
|
|
17
|
+
def validate_tos_uri(self) -> None: ...
|
|
18
|
+
def validate_policy_uri(self) -> None: ...
|
|
19
|
+
def validate_jwks_uri(self) -> None: ...
|
|
20
|
+
def validate_jwks(self) -> None: ...
|
|
21
|
+
def validate_software_id(self) -> None: ...
|
|
22
|
+
def validate_software_version(self) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc7591 import ClientMetadataClaims
|
|
4
|
+
|
|
5
|
+
class ClientRegistrationEndpoint:
|
|
6
|
+
ENDPOINT_NAME: str
|
|
7
|
+
claims_class = ClientMetadataClaims
|
|
8
|
+
software_statement_alg_values_supported: Incomplete
|
|
9
|
+
server: Incomplete
|
|
10
|
+
def __init__(self, server) -> None: ...
|
|
11
|
+
def __call__(self, request): ...
|
|
12
|
+
def create_registration_response(self, request): ...
|
|
13
|
+
def extract_client_metadata(self, request): ...
|
|
14
|
+
def extract_software_statement(self, software_statement, request): ...
|
|
15
|
+
def get_claims_options(self): ...
|
|
16
|
+
def generate_client_info(self): ...
|
|
17
|
+
def generate_client_registration_info(self, client, request) -> None: ...
|
|
18
|
+
def create_endpoint_request(self, request): ...
|
|
19
|
+
def generate_client_id(self): ...
|
|
20
|
+
def generate_client_secret(self): ...
|
|
21
|
+
def get_server_metadata(self) -> None: ...
|
|
22
|
+
def authenticate_token(self, request) -> None: ...
|
|
23
|
+
def resolve_public_key(self, request) -> None: ...
|
|
24
|
+
def save_client(self, client_info, client_metadata, request) -> None: ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from authlib.oauth2 import OAuth2Error
|
|
2
|
+
|
|
3
|
+
class InvalidRedirectURIError(OAuth2Error):
|
|
4
|
+
error: str
|
|
5
|
+
|
|
6
|
+
class InvalidClientMetadataError(OAuth2Error):
|
|
7
|
+
error: str
|
|
8
|
+
|
|
9
|
+
class InvalidSoftwareStatementError(OAuth2Error):
|
|
10
|
+
error: str
|
|
11
|
+
|
|
12
|
+
class UnapprovedSoftwareStatementError(OAuth2Error):
|
|
13
|
+
error: str
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc7591 import ClientMetadataClaims
|
|
4
|
+
|
|
5
|
+
class ClientConfigurationEndpoint:
|
|
6
|
+
ENDPOINT_NAME: str
|
|
7
|
+
claims_class = ClientMetadataClaims
|
|
8
|
+
server: Incomplete
|
|
9
|
+
def __init__(self, server) -> None: ...
|
|
10
|
+
def __call__(self, request): ...
|
|
11
|
+
def create_configuration_response(self, request): ...
|
|
12
|
+
def create_endpoint_request(self, request): ...
|
|
13
|
+
def create_read_client_response(self, client, request): ...
|
|
14
|
+
def create_delete_client_response(self, client, request): ...
|
|
15
|
+
def create_update_client_response(self, client, request): ...
|
|
16
|
+
def extract_client_metadata(self, request): ...
|
|
17
|
+
def get_claims_options(self): ...
|
|
18
|
+
def introspect_client(self, client): ...
|
|
19
|
+
def generate_client_registration_info(self, client, request) -> None: ...
|
|
20
|
+
def authenticate_token(self, request) -> None: ...
|
|
21
|
+
def authenticate_client(self, request) -> None: ...
|
|
22
|
+
def revoke_access_token(self, token, request) -> None: ...
|
|
23
|
+
def check_permission(self, client, request) -> None: ...
|
|
24
|
+
def delete_client(self, client, request) -> None: ...
|
|
25
|
+
def update_client(self, client, client_metadata, request) -> None: ...
|
|
26
|
+
def get_server_metadata(self) -> None: ...
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
CODE_VERIFIER_PATTERN: Incomplete
|
|
4
|
+
CODE_CHALLENGE_PATTERN: Incomplete
|
|
5
|
+
|
|
6
|
+
def create_s256_code_challenge(code_verifier): ...
|
|
7
|
+
def compare_plain_code_challenge(code_verifier, code_challenge): ...
|
|
8
|
+
def compare_s256_code_challenge(code_verifier, code_challenge): ...
|
|
9
|
+
|
|
10
|
+
class CodeChallenge:
|
|
11
|
+
DEFAULT_CODE_CHALLENGE_METHOD: str
|
|
12
|
+
SUPPORTED_CODE_CHALLENGE_METHOD: Incomplete
|
|
13
|
+
CODE_CHALLENGE_METHODS: Incomplete
|
|
14
|
+
required: Incomplete
|
|
15
|
+
def __init__(self, required: bool = True) -> None: ...
|
|
16
|
+
def __call__(self, grant) -> None: ...
|
|
17
|
+
def validate_code_challenge(self, grant) -> None: ...
|
|
18
|
+
def validate_code_verifier(self, grant) -> None: ...
|
|
19
|
+
def get_authorization_code_challenge(self, authorization_code): ...
|
|
20
|
+
def get_authorization_code_challenge_method(self, authorization_code): ...
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
from .introspection import IntrospectionEndpoint as IntrospectionEndpoint
|
|
2
|
+
from .models import IntrospectionToken as IntrospectionToken
|
|
3
|
+
from .token_validator import IntrospectTokenValidator as IntrospectTokenValidator
|
|
4
|
+
|
|
5
|
+
__all__ = ["IntrospectionEndpoint", "IntrospectionToken", "IntrospectTokenValidator"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from authlib.oauth2.rfc6749 import TokenEndpoint
|
|
2
|
+
|
|
3
|
+
class IntrospectionEndpoint(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 create_introspection_payload(self, token): ...
|
|
9
|
+
def check_permission(self, token, client, request) -> None: ...
|
|
10
|
+
def query_token(self, token_string, token_type_hint) -> None: ...
|
|
11
|
+
def introspect_token(self, token) -> None: ...
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from authlib.oauth2.rfc6749 import TokenValidator
|
|
2
|
+
|
|
3
|
+
class IntrospectTokenValidator(TokenValidator):
|
|
4
|
+
TOKEN_TYPE: str
|
|
5
|
+
def introspect_token(self, token_string) -> None: ...
|
|
6
|
+
def authenticate_token(self, token_string): ...
|
|
7
|
+
def validate_token(self, token, scopes, request) -> None: ...
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class AuthorizationServerMetadata(dict[str, object]):
|
|
4
|
+
REGISTRY_KEYS: Incomplete
|
|
5
|
+
def validate_issuer(self) -> None: ...
|
|
6
|
+
def validate_authorization_endpoint(self) -> None: ...
|
|
7
|
+
def validate_token_endpoint(self) -> None: ...
|
|
8
|
+
def validate_jwks_uri(self) -> None: ...
|
|
9
|
+
def validate_registration_endpoint(self) -> None: ...
|
|
10
|
+
def validate_scopes_supported(self) -> None: ...
|
|
11
|
+
def validate_response_types_supported(self) -> None: ...
|
|
12
|
+
def validate_response_modes_supported(self) -> None: ...
|
|
13
|
+
def validate_grant_types_supported(self) -> None: ...
|
|
14
|
+
def validate_token_endpoint_auth_methods_supported(self) -> None: ...
|
|
15
|
+
def validate_token_endpoint_auth_signing_alg_values_supported(self) -> None: ...
|
|
16
|
+
def validate_service_documentation(self) -> None: ...
|
|
17
|
+
def validate_ui_locales_supported(self) -> None: ...
|
|
18
|
+
def validate_op_policy_uri(self) -> None: ...
|
|
19
|
+
def validate_op_tos_uri(self) -> None: ...
|
|
20
|
+
def validate_revocation_endpoint(self) -> None: ...
|
|
21
|
+
def validate_revocation_endpoint_auth_methods_supported(self) -> None: ...
|
|
22
|
+
def validate_revocation_endpoint_auth_signing_alg_values_supported(self) -> None: ...
|
|
23
|
+
def validate_introspection_endpoint(self) -> None: ...
|
|
24
|
+
def validate_introspection_endpoint_auth_methods_supported(self) -> None: ...
|
|
25
|
+
def validate_introspection_endpoint_auth_signing_alg_values_supported(self) -> None: ...
|
|
26
|
+
def validate_code_challenge_methods_supported(self) -> None: ...
|
|
27
|
+
@property
|
|
28
|
+
def response_modes_supported(self): ...
|
|
29
|
+
@property
|
|
30
|
+
def grant_types_supported(self): ...
|
|
31
|
+
@property
|
|
32
|
+
def token_endpoint_auth_methods_supported(self): ...
|
|
33
|
+
@property
|
|
34
|
+
def revocation_endpoint_auth_methods_supported(self): ...
|
|
35
|
+
@property
|
|
36
|
+
def introspection_endpoint_auth_methods_supported(self): ...
|
|
37
|
+
def validate(self) -> None: ...
|
|
38
|
+
def __getattr__(self, key): ...
|
|
39
|
+
|
|
40
|
+
def validate_array_value(metadata, key) -> None: ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
def get_well_known_url(issuer, external: bool = False, suffix: str = "oauth-authorization-server"): ...
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from .device_code import DEVICE_CODE_GRANT_TYPE as DEVICE_CODE_GRANT_TYPE, DeviceCodeGrant as DeviceCodeGrant
|
|
2
|
+
from .endpoint import DeviceAuthorizationEndpoint as DeviceAuthorizationEndpoint
|
|
3
|
+
from .errors import (
|
|
4
|
+
AuthorizationPendingError as AuthorizationPendingError,
|
|
5
|
+
ExpiredTokenError as ExpiredTokenError,
|
|
6
|
+
SlowDownError as SlowDownError,
|
|
7
|
+
)
|
|
8
|
+
from .models import DeviceCredentialDict as DeviceCredentialDict, DeviceCredentialMixin as DeviceCredentialMixin
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"DeviceAuthorizationEndpoint",
|
|
12
|
+
"DeviceCodeGrant",
|
|
13
|
+
"DEVICE_CODE_GRANT_TYPE",
|
|
14
|
+
"DeviceCredentialMixin",
|
|
15
|
+
"DeviceCredentialDict",
|
|
16
|
+
"AuthorizationPendingError",
|
|
17
|
+
"SlowDownError",
|
|
18
|
+
"ExpiredTokenError",
|
|
19
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc6749 import BaseGrant, TokenEndpointMixin
|
|
4
|
+
|
|
5
|
+
DEVICE_CODE_GRANT_TYPE: str
|
|
6
|
+
|
|
7
|
+
class DeviceCodeGrant(BaseGrant, TokenEndpointMixin):
|
|
8
|
+
GRANT_TYPE = DEVICE_CODE_GRANT_TYPE
|
|
9
|
+
TOKEN_ENDPOINT_AUTH_METHODS: Incomplete
|
|
10
|
+
def validate_token_request(self) -> None: ...
|
|
11
|
+
def create_token_response(self): ...
|
|
12
|
+
def validate_device_credential(self, credential): ...
|
|
13
|
+
def query_device_credential(self, device_code) -> None: ...
|
|
14
|
+
def query_user_grant(self, user_code) -> None: ...
|
|
15
|
+
def should_slow_down(self, credential) -> None: ...
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class DeviceAuthorizationEndpoint:
|
|
4
|
+
ENDPOINT_NAME: str
|
|
5
|
+
CLIENT_AUTH_METHODS: Incomplete
|
|
6
|
+
USER_CODE_TYPE: str
|
|
7
|
+
EXPIRES_IN: int
|
|
8
|
+
INTERVAL: int
|
|
9
|
+
server: Incomplete
|
|
10
|
+
def __init__(self, server) -> None: ...
|
|
11
|
+
def __call__(self, request): ...
|
|
12
|
+
def create_endpoint_request(self, request): ...
|
|
13
|
+
def authenticate_client(self, request): ...
|
|
14
|
+
def create_endpoint_response(self, request): ...
|
|
15
|
+
def generate_user_code(self): ...
|
|
16
|
+
def generate_device_code(self): ...
|
|
17
|
+
def get_verification_uri(self) -> None: ...
|
|
18
|
+
def save_device_credential(self, client_id, scope, data) -> None: ...
|
|
19
|
+
|
|
20
|
+
def create_string_user_code(): ...
|
|
21
|
+
def create_digital_user_code(): ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class DeviceCredentialMixin:
|
|
2
|
+
def get_client_id(self) -> None: ...
|
|
3
|
+
def get_scope(self) -> None: ...
|
|
4
|
+
def get_user_code(self) -> None: ...
|
|
5
|
+
def is_expired(self) -> None: ...
|
|
6
|
+
|
|
7
|
+
class DeviceCredentialDict(dict[str, object], DeviceCredentialMixin):
|
|
8
|
+
def get_client_id(self): ...
|
|
9
|
+
def get_scope(self): ...
|
|
10
|
+
def get_user_code(self): ...
|
|
11
|
+
def get_nonce(self): ...
|
|
12
|
+
def get_auth_time(self): ...
|
|
13
|
+
def is_expired(self): ...
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
from .introspection import JWTIntrospectionEndpoint as JWTIntrospectionEndpoint
|
|
2
|
+
from .revocation import JWTRevocationEndpoint as JWTRevocationEndpoint
|
|
3
|
+
from .token import JWTBearerTokenGenerator as JWTBearerTokenGenerator
|
|
4
|
+
from .token_validator import JWTBearerTokenValidator as JWTBearerTokenValidator
|
|
5
|
+
|
|
6
|
+
__all__ = ["JWTBearerTokenGenerator", "JWTBearerTokenValidator", "JWTIntrospectionEndpoint", "JWTRevocationEndpoint"]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose import JWTClaims
|
|
4
|
+
|
|
5
|
+
class JWTAccessTokenClaims(JWTClaims):
|
|
6
|
+
REGISTERED_CLAIMS: Incomplete
|
|
7
|
+
def validate(self, now: Incomplete | None = None, leeway: int = 0, **kwargs) -> None: ...
|
|
8
|
+
def validate_typ(self) -> None: ...
|
|
9
|
+
def validate_client_id(self): ...
|
|
10
|
+
def validate_auth_time(self) -> None: ...
|
|
11
|
+
def validate_acr(self): ...
|
|
12
|
+
def validate_amr(self) -> None: ...
|
|
13
|
+
def validate_scope(self): ...
|
|
14
|
+
def validate_groups(self): ...
|
|
15
|
+
def validate_roles(self): ...
|
|
16
|
+
def validate_entitlements(self): ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc7662 import IntrospectionEndpoint
|
|
4
|
+
|
|
5
|
+
class JWTIntrospectionEndpoint(IntrospectionEndpoint):
|
|
6
|
+
ENDPOINT_NAME: str
|
|
7
|
+
issuer: Incomplete
|
|
8
|
+
def __init__(self, issuer, server: Incomplete | None = None, *args, **kwargs) -> None: ...
|
|
9
|
+
def create_endpoint_response(self, request): ...
|
|
10
|
+
def authenticate_token(self, request, client): ...
|
|
11
|
+
def create_introspection_payload(self, token): ...
|
|
12
|
+
def get_jwks(self) -> None: ...
|
|
13
|
+
def get_username(self, user_id: str) -> str: ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc7009 import RevocationEndpoint
|
|
4
|
+
|
|
5
|
+
class JWTRevocationEndpoint(RevocationEndpoint):
|
|
6
|
+
issuer: Incomplete
|
|
7
|
+
def __init__(self, issuer, server: Incomplete | None = None, *args, **kwargs) -> None: ...
|
|
8
|
+
def authenticate_token(self, request, client) -> None: ...
|
|
9
|
+
def get_jwks(self) -> None: ...
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc6750 import BearerTokenGenerator
|
|
4
|
+
|
|
5
|
+
class JWTBearerTokenGenerator(BearerTokenGenerator):
|
|
6
|
+
issuer: Incomplete
|
|
7
|
+
alg: Incomplete
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
issuer,
|
|
11
|
+
alg: str = "RS256",
|
|
12
|
+
refresh_token_generator: Incomplete | None = None,
|
|
13
|
+
expires_generator: Incomplete | None = None,
|
|
14
|
+
) -> None: ...
|
|
15
|
+
def get_jwks(self) -> None: ...
|
|
16
|
+
def get_extra_claims(self, client, grant_type, user, scope): ...
|
|
17
|
+
def get_audiences(self, client, user, scope) -> str | list[str]: ...
|
|
18
|
+
def get_acr(self, user) -> str | None: ...
|
|
19
|
+
def get_auth_time(self, user) -> int | None: ...
|
|
20
|
+
def get_amr(self, user) -> list[str] | None: ...
|
|
21
|
+
def get_jti(self, client, grant_type, user, scope) -> str: ...
|
|
22
|
+
# Override seems safe, but mypy doesn't like that it's a callabe protocol in the base
|
|
23
|
+
def access_token_generator(self, client, grant_type, user, scope): ... # type: ignore[override]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc6750 import BearerTokenValidator
|
|
4
|
+
|
|
5
|
+
class JWTBearerTokenValidator(BearerTokenValidator):
|
|
6
|
+
issuer: Incomplete
|
|
7
|
+
resource_server: Incomplete
|
|
8
|
+
def __init__(self, issuer, resource_server, *args, **kwargs) -> None: ...
|
|
9
|
+
def get_jwks(self) -> None: ...
|
|
10
|
+
def validate_iss(self, claims, iss: str) -> bool: ...
|
|
11
|
+
def authenticate_token(self, token_string): ...
|
|
12
|
+
def validate_token(
|
|
13
|
+
self,
|
|
14
|
+
token,
|
|
15
|
+
scopes,
|
|
16
|
+
request,
|
|
17
|
+
groups: Incomplete | None = None,
|
|
18
|
+
roles: Incomplete | None = None,
|
|
19
|
+
entitlements: Incomplete | None = None,
|
|
20
|
+
) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from .claims import (
|
|
2
|
+
CodeIDToken as CodeIDToken,
|
|
3
|
+
HybridIDToken as HybridIDToken,
|
|
4
|
+
IDToken as IDToken,
|
|
5
|
+
ImplicitIDToken as ImplicitIDToken,
|
|
6
|
+
UserInfo as UserInfo,
|
|
7
|
+
get_claim_cls_by_response_type as get_claim_cls_by_response_type,
|
|
8
|
+
)
|
|
9
|
+
from .grants import (
|
|
10
|
+
OpenIDCode as OpenIDCode,
|
|
11
|
+
OpenIDHybridGrant as OpenIDHybridGrant,
|
|
12
|
+
OpenIDImplicitGrant as OpenIDImplicitGrant,
|
|
13
|
+
OpenIDToken as OpenIDToken,
|
|
14
|
+
)
|
|
15
|
+
from .models import AuthorizationCodeMixin as AuthorizationCodeMixin
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"AuthorizationCodeMixin",
|
|
19
|
+
"IDToken",
|
|
20
|
+
"CodeIDToken",
|
|
21
|
+
"ImplicitIDToken",
|
|
22
|
+
"HybridIDToken",
|
|
23
|
+
"UserInfo",
|
|
24
|
+
"get_claim_cls_by_response_type",
|
|
25
|
+
"OpenIDToken",
|
|
26
|
+
"OpenIDCode",
|
|
27
|
+
"OpenIDHybridGrant",
|
|
28
|
+
"OpenIDImplicitGrant",
|
|
29
|
+
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose import JWTClaims
|
|
4
|
+
|
|
5
|
+
__all__ = ["IDToken", "CodeIDToken", "ImplicitIDToken", "HybridIDToken", "UserInfo", "get_claim_cls_by_response_type"]
|
|
6
|
+
|
|
7
|
+
class IDToken(JWTClaims):
|
|
8
|
+
ESSENTIAL_CLAIMS: Incomplete
|
|
9
|
+
def validate(self, now: Incomplete | None = None, leeway: int = 0) -> None: ...
|
|
10
|
+
def validate_auth_time(self) -> None: ...
|
|
11
|
+
def validate_nonce(self) -> None: ...
|
|
12
|
+
def validate_acr(self): ...
|
|
13
|
+
def validate_amr(self) -> None: ...
|
|
14
|
+
def validate_azp(self) -> None: ...
|
|
15
|
+
def validate_at_hash(self) -> None: ...
|
|
16
|
+
|
|
17
|
+
class CodeIDToken(IDToken):
|
|
18
|
+
RESPONSE_TYPES: Incomplete
|
|
19
|
+
REGISTERED_CLAIMS: Incomplete
|
|
20
|
+
|
|
21
|
+
class ImplicitIDToken(IDToken):
|
|
22
|
+
RESPONSE_TYPES: Incomplete
|
|
23
|
+
ESSENTIAL_CLAIMS: Incomplete
|
|
24
|
+
REGISTERED_CLAIMS: Incomplete
|
|
25
|
+
def validate_at_hash(self) -> None: ...
|
|
26
|
+
|
|
27
|
+
class HybridIDToken(ImplicitIDToken):
|
|
28
|
+
RESPONSE_TYPES: Incomplete
|
|
29
|
+
REGISTERED_CLAIMS: Incomplete
|
|
30
|
+
def validate(self, now: Incomplete | None = None, leeway: int = 0) -> None: ...
|
|
31
|
+
def validate_c_hash(self) -> None: ...
|
|
32
|
+
|
|
33
|
+
class UserInfo(dict[str, object]):
|
|
34
|
+
REGISTERED_CLAIMS: Incomplete
|
|
35
|
+
def __getattr__(self, key): ...
|
|
36
|
+
|
|
37
|
+
def get_claim_cls_by_response_type(response_type): ...
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from authlib.oauth2 import OAuth2Error
|
|
2
|
+
|
|
3
|
+
class InteractionRequiredError(OAuth2Error):
|
|
4
|
+
error: str
|
|
5
|
+
|
|
6
|
+
class LoginRequiredError(OAuth2Error):
|
|
7
|
+
error: str
|
|
8
|
+
|
|
9
|
+
class AccountSelectionRequiredError(OAuth2Error):
|
|
10
|
+
error: str
|
|
11
|
+
|
|
12
|
+
class ConsentRequiredError(OAuth2Error):
|
|
13
|
+
error: str
|
|
14
|
+
|
|
15
|
+
class InvalidRequestURIError(OAuth2Error):
|
|
16
|
+
error: str
|
|
17
|
+
|
|
18
|
+
class InvalidRequestObjectError(OAuth2Error):
|
|
19
|
+
error: str
|
|
20
|
+
|
|
21
|
+
class RequestNotSupportedError(OAuth2Error):
|
|
22
|
+
error: str
|
|
23
|
+
|
|
24
|
+
class RequestURINotSupportedError(OAuth2Error):
|
|
25
|
+
error: str
|
|
26
|
+
|
|
27
|
+
class RegistrationNotSupportedError(OAuth2Error):
|
|
28
|
+
error: str
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
from .code import OpenIDCode as OpenIDCode, OpenIDToken as OpenIDToken
|
|
2
|
+
from .hybrid import OpenIDHybridGrant as OpenIDHybridGrant
|
|
3
|
+
from .implicit import OpenIDImplicitGrant as OpenIDImplicitGrant
|
|
4
|
+
|
|
5
|
+
__all__ = ["OpenIDToken", "OpenIDCode", "OpenIDImplicitGrant", "OpenIDHybridGrant"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from authlib.oauth2 import OAuth2Request
|
|
2
|
+
from authlib.oauth2.rfc6749 import BaseGrant
|
|
3
|
+
from authlib.oidc.core import UserInfo
|
|
4
|
+
|
|
5
|
+
class OpenIDToken:
|
|
6
|
+
def get_jwt_config(self, grant: BaseGrant) -> dict[str, str | int]: ...
|
|
7
|
+
def generate_user_info(self, user, scope: str) -> UserInfo: ...
|
|
8
|
+
def get_audiences(self, request: OAuth2Request) -> list[str]: ...
|
|
9
|
+
def process_token(self, grant: BaseGrant, token: dict[str, str | int]) -> dict[str, str | int]: ...
|
|
10
|
+
def __call__(self, grant: BaseGrant) -> None: ...
|
|
11
|
+
|
|
12
|
+
class OpenIDCode(OpenIDToken):
|
|
13
|
+
require_nonce: bool
|
|
14
|
+
def __init__(self, require_nonce: bool = False) -> None: ...
|
|
15
|
+
def exists_nonce(self, nonce: str, request: OAuth2Request) -> bool: ...
|
|
16
|
+
def validate_openid_authorization_request(self, grant: BaseGrant) -> None: ...
|
|
17
|
+
def __call__(self, grant: BaseGrant) -> None: ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oidc.core import OpenIDImplicitGrant
|
|
4
|
+
|
|
5
|
+
class OpenIDHybridGrant(OpenIDImplicitGrant):
|
|
6
|
+
AUTHORIZATION_CODE_LENGTH: int
|
|
7
|
+
RESPONSE_TYPES: Incomplete
|
|
8
|
+
GRANT_TYPE: str
|
|
9
|
+
DEFAULT_RESPONSE_MODE: str
|
|
10
|
+
def generate_authorization_code(self): ...
|
|
11
|
+
def save_authorization_code(self, code, request) -> None: ...
|
|
12
|
+
def validate_authorization_request(self): ...
|
|
13
|
+
def create_granted_params(self, grant_user): ...
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.oauth2.rfc6749 import ImplicitGrant
|
|
4
|
+
|
|
5
|
+
class OpenIDImplicitGrant(ImplicitGrant):
|
|
6
|
+
RESPONSE_TYPES: Incomplete
|
|
7
|
+
DEFAULT_RESPONSE_MODE: str
|
|
8
|
+
def exists_nonce(self, nonce, request) -> None: ...
|
|
9
|
+
def get_jwt_config(self) -> None: ...
|
|
10
|
+
def generate_user_info(self, user, scope) -> None: ...
|
|
11
|
+
def get_audiences(self, request): ...
|
|
12
|
+
def validate_authorization_request(self): ...
|
|
13
|
+
def validate_consent_request(self) -> None: ...
|
|
14
|
+
def create_authorization_response(self, redirect_uri, grant_user): ...
|
|
15
|
+
def create_granted_params(self, grant_user): ...
|
|
16
|
+
def process_implicit_token(self, token, code: Incomplete | None = None): ...
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from authlib.oidc.core import UserInfo
|
|
2
|
+
|
|
3
|
+
def is_openid_scope(scope: str | None) -> bool: ...
|
|
4
|
+
def validate_request_prompt(grant, redirect_uri, redirect_fragment: bool = False): ...
|
|
5
|
+
def validate_nonce(request, exists_nonce, required: bool = False): ...
|
|
6
|
+
def generate_id_token(
|
|
7
|
+
token: dict[str, str | int],
|
|
8
|
+
user_info: UserInfo,
|
|
9
|
+
key: str,
|
|
10
|
+
iss: str,
|
|
11
|
+
aud: list[str],
|
|
12
|
+
alg: str = "RS256",
|
|
13
|
+
exp: int = 3600,
|
|
14
|
+
nonce: str | None = None,
|
|
15
|
+
auth_time: int | None = None,
|
|
16
|
+
code: str | None = None,
|
|
17
|
+
) -> str: ...
|
|
18
|
+
def create_response_mode_response(redirect_uri, params, response_mode): ...
|