authlib の API リファレンス
authlib (authlib/authlib) の公開 API 105 件 —— クラス 46、関数 6、メソッド 53。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: authlib/authlib
| 種別 | 件数 |
|---|---|
| クラス | 46 |
| 関数 | 6 |
| メソッド | 53 |
API 一覧
class
authlib.common.errors.AuthlibBaseErrorBase Exception for all errors in Authlib.
func
authlib.common.security.is_secure_transport(uri)Check if the uri is over ssl.
func
authlib.common.urls.add_params_to_qs(query, params)Extend a query with a list of two-tuples.
class
authlib.integrations.base_client.registry.BaseOAuthRegistry for oauth clients.
class
authlib.integrations.flask_oauth1.resource_protector.ResourceProtectorA protecting method for resource servers.
class
authlib.integrations.flask_oauth2.resource_protector.ResourceProtectorA protecting method for resource servers.
class
authlib.integrations.httpx_client.oauth1_client.OAuth1AuthSigns the httpx2 request using OAuth 1 (RFC5849).
class
authlib.integrations.requests_client.oauth1_session.OAuth1AuthSigns the request using OAuth 1 (RFC5849).
class
authlib.integrations.requests_client.oauth2_session.OAuth2SessionConstruct a new OAuth 2 client requests session.
class
authlib.jose.rfc7515.models.JWSAlgorithmInterface for JWS algorithm.
class
authlib.jose.rfc7515.models.JWSHeaderHeader object for JWS.
class
authlib.jose.rfc7515.models.JWSObjectA dict instance to represent a JWS object.
class
authlib.jose.rfc7516.models.JWEAlgorithmInterface for JWE algorithm conforming to RFC7518.
class
authlib.jose.rfc7516.models.JWEAlgorithmBaseBase interface for all JWE algorithms.
class
authlib.jose.rfc7516.models.JWEHeaderHeader object for JWE.
class
authlib.jose.rfc7516.models.JWESharedHeaderShared header object for JWE.
class
authlib.jose.rfc7517.asymmetric_key.AsymmetricKeyThis is the base class for a JSON Web Key.
method
authlib.jose.rfc7517.asymmetric_key.AsymmetricKey.as_key(is_private=False)Represent this key as raw key.
class
authlib.jose.rfc7517.base_key.KeyThis is the base class for a JSON Web Key.
class
authlib.jose.rfc7517.key_set.KeySetThis class represents a JSON Web Key Set.
class
authlib.jose.rfc7518.ec_key.ECKeyKey class of the ``EC`` key type.
class
authlib.jose.rfc7518.jws_algs.ECAlgorithmECDSA using SHA algorithms for JWS.
class
authlib.jose.rfc7518.jws_algs.HMACAlgorithmHMAC using SHA algorithms for JWS.
class
authlib.jose.rfc7518.jws_algs.RSAAlgorithmRSA using SHA algorithms for JWS.
class
authlib.jose.rfc7518.jws_algs.RSAPSSAlgorithmRSASSA-PSS using SHA algorithms for JWS.
class
authlib.jose.rfc7518.oct_key.OctKeyKey class of the ``oct`` key type.
method
authlib.jose.rfc7518.oct_key.OctKey.get_op_key(operation)Get the raw key for the given key_op.
class
authlib.jose.rfc7518.rsa_key.RSAKeyKey class of the ``RSA`` key type.
class
authlib.jose.rfc8037.okp_key.OKPKeyKey class of the ``OKP`` key type.
func
authlib.oauth1.rfc5849.signature.sign_hmac_sha1(client, request)Sign a HMAC-SHA1 signature.
func
authlib.oauth1.rfc5849.signature.sign_plaintext(client, request)Sign a PLAINTEXT signature.
func
authlib.oauth1.rfc5849.signature.verify_hmac_sha1(request)Verify a HMAC-SHA1 signature.
func
authlib.oauth1.rfc5849.signature.verify_plaintext(request)Verify a PLAINTEXT signature.
class
authlib.oauth2.auth.ClientAuthAttaches OAuth Client Information to HTTP requests.
class
authlib.oauth2.auth.TokenAuthAttach token information to HTTP requests.
class
authlib.oauth2.client.OAuth2ClientConstruct a new OAuth 2 protocol client.
class
authlib.oauth2.rfc6749.endpoint.EndpointBase class for OAuth2 endpoints.
method
authlib.oauth2.rfc6749.endpoint.Endpoint.create_response(validated_request:EndpointRequest) -> tuple[int, Any, list] | NoneCreate the HTTP response from a validated request.
class
authlib.oauth2.rfc6749.endpoint.EndpointRequestBase class for validated endpoint requests.
class
authlib.oauth2.rfc6749.resource_protector.TokenValidatorBase token validator class.
method
authlib.oauth2.rfc7009.revocation.RevocationEndpoint.revoke_token(token, request)Mark token as revoked.
class
authlib.oauth2.rfc7523.auth.ClientSecretJWTAuthentication method for OAuth 2.0 Client.
class
authlib.oauth2.rfc7523.auth.PrivateKeyJWTAuthentication method for OAuth 2.0 Client.
class
authlib.oauth2.rfc7591.errors.InvalidRedirectURIErrorThe value of one or more redirection URIs is invalid.
class
authlib.oauth2.rfc7591.errors.InvalidSoftwareStatementErrorThe software statement presented is invalid.
class
authlib.oauth2.rfc7636.challenge.CodeChallengeCodeChallenge extension to Authorization Code Grant.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_code_challenge_methods_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_grant_types_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_introspection_endpoint()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_introspection_endpoint_auth_methods_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_introspection_endpoint_auth_signing_alg_values_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_issuer()REQUIRED.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_jwks_uri()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_op_policy_uri()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_op_tos_uri()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_registration_endpoint()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_response_modes_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_response_types_supported()REQUIRED.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_revocation_endpoint()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_revocation_endpoint_auth_methods_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_revocation_endpoint_auth_signing_alg_values_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_scopes_supported()RECOMMENDED.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_service_documentation()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_token_endpoint_auth_methods_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_token_endpoint_auth_signing_alg_values_supported()OPTIONAL.
method
authlib.oauth2.rfc8414.models.AuthorizationServerMetadata.validate_ui_locales_supported()OPTIONAL.
class
authlib.oauth2.rfc9068.token.JWTBearerTokenGeneratorA JWT formatted access token generator.
method
authlib.oauth2.rfc9068.token.JWTBearerTokenGenerator.get_acr(user) -> str | NoneAuthentication Context Class Reference.
method
authlib.oauth2.rfc9068.token.JWTBearerTokenGenerator.get_amr(user) -> list[str] | NoneAuthentication Methods References.
method
authlib.oauth2.rfc9068.token.JWTBearerTokenGenerator.get_audiences(client, user, scope) -> str | list[str]Return the audience for the token.
method
authlib.oauth2.rfc9068.token.JWTBearerTokenGenerator.get_auth_time(user) -> int | NoneUser authentication time.
method
authlib.oauth2.rfc9068.token.JWTBearerTokenGenerator.get_jti(client, grant_type, user, scope) -> strJWT ID.
class
authlib.oauth2.rfc9207.discovery.AuthorizationServerMetadataAuthorization Server Metadata extension for RFC9207.
class
authlib.oidc.core.claims.UserInfoThe standard claims of a UserInfo object.
class
authlib.oidc.core.errors.ConsentRequiredErrorThe Authorization Server requires End-User consent.
class
authlib.oidc.core.errors.LoginRequiredErrorThe Authorization Server requires End-User authentication.
class
authlib.oidc.core.errors.RequestNotSupportedErrorThe OP does not support use of the request parameter.
class
authlib.oidc.core.userinfo.UserInfoEndpointOpenID Connect Core UserInfo Endpoint.
method
authlib.oidc.core.userinfo.UserInfoEndpoint.get_issuer() -> strThe OP's Issuer Identifier URL.
class
authlib.oidc.discovery.models.OpenIDProviderMetadataOpenID Provider Metadata for OpenID Connect Discovery.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_acr_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_claim_types_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_claims_locales_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_claims_parameter_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_claims_supported()RECOMMENDED.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_display_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_id_token_encryption_alg_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_id_token_encryption_enc_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_id_token_signing_alg_values_supported()REQUIRED.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_request_object_encryption_alg_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_request_object_encryption_enc_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_request_object_signing_alg_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_request_parameter_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_request_uri_parameter_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_require_request_uri_registration()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_subject_types_supported()REQUIRED.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_userinfo_encryption_alg_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_userinfo_encryption_enc_values_supported()OPTIONAL.
method
authlib.oidc.discovery.models.OpenIDProviderMetadata.validate_userinfo_signing_alg_values_supported()OPTIONAL.
class
authlib.oidc.rpinitiated.end_session.EndSessionEndpointOpenID Connect RP-Initiated Logout endpoint.
method
authlib.oidc.rpinitiated.end_session.EndSessionEndpoint.create_response(validated_request:EndSessionRequest) -> tuple[int, Any, list[tuple[str, str]]] | NoneCreate the end session HTTP response.
method
authlib.oidc.rpinitiated.end_session.EndSessionEndpoint.end_session(end_session_request:EndSessionRequest) -> NoneTerminate the user's session.
method
authlib.oidc.rpinitiated.end_session.EndSessionEndpoint.resolve_client_from_id_token_claims(id_token_claims:dict) -> Any | NoneResolve client from id_token aud claim.
method
authlib.oidc.rpinitiated.end_session.EndSessionEndpoint.validate_request(request:OAuth2Request) -> EndSessionRequestValidate an end session request.
class
authlib.oidc.rpinitiated.end_session.EndSessionRequestValidated end session request data.
この情報について
掲載しているシグネチャは authlib/authlib の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。