MCPcopy Create free account

hub / github.com/authlib/authlib / functions

Functions2,764 in github.com/authlib/authlib

↓ 2 callersMethodcheck_redirect_uri
Validate redirect_uri parameter in Authorization Endpoints. For instance, in the client table, there is an ``allowed_redirect_uris`` c
authlib/oauth2/rfc6749/models.py:55
↓ 2 callersMethodcheck_response_type
Validate if the client can handle the given response_type. There are two response types defined by RFC6749: code and token. For instan
authlib/oauth2/rfc6749/models.py:107
↓ 2 callersMethodcompress
(self, s)
authlib/jose/rfc7516/models.py:106
↓ 2 callersMethodcompute_derived_key
(self, shared_key, fixed_info, bit_size)
authlib/jose/drafts/_jwe_algorithms.py:73
↓ 2 callersMethodcompute_fixed_info
(self, headers, bit_size, tag)
authlib/jose/drafts/_jwe_algorithms.py:50
↓ 2 callersFunctioncreate_access_token
(claims, jwks, alg="RS256", typ="at+jwt")
tests/flask/test_oauth2/rfc9068/test_token_revocation.py:112
↓ 2 callersFunctioncreate_bearer_token_validator
Create an bearer token validator class with SQLAlchemy session and token model. :param session: SQLAlchemy session :param token_model: To
authlib/integrations/sqla_oauth2/functions.py:90
↓ 2 callersMethodcreate_client
Create or get the given named OAuth client. For instance, the OAuth registry has ``.register`` a twitter client, developers may access
authlib/integrations/base_client/registry.py:44
↓ 2 callersMethodcreate_client
(self, name)
authlib/integrations/flask_client/__init__.py:40
↓ 2 callersMethodcreate_endpoint_request
Convert framework request to OAuth2Request.
authlib/oauth2/rfc6749/endpoint.py:54
↓ 2 callersMethodcreate_json_request
This method MUST be implemented in framework integrations. It is used to create an HttpRequest instance. :param request: the "request
authlib/oauth2/rfc6749/authorization_server.py:178
↓ 2 callersFunctioncreate_query_token_func
Create an ``query_token`` function for revocation, introspection token endpoints. :param session: SQLAlchemy session :param token_model:
authlib/integrations/sqla_oauth2/functions.py:40
↓ 2 callersMethodcreate_read_client_response
(self, client, request)
authlib/oauth2/rfc7592/endpoint.py:67
↓ 2 callersMethodcreate_response
Create the HTTP response from a validated request. :param validated_request: The validated EndpointRequest :returns: Tuple of (status
authlib/oauth2/rfc6749/endpoint.py:67
↓ 2 callersMethoddecompress
(self, s)
authlib/jose/rfc7516/models.py:109
↓ 2 callersMethoddeserialize_compact
Exact JWS Compact Serialization, and validate with the given key. If key is not provided, the returned dict will contain the signature,
authlib/jose/rfc7515/jws.py:84
↓ 2 callersFunctionencode_int
(num, bits)
authlib/jose/rfc7518/util.py:4
↓ 2 callersMethodensure_active_token
(self, token=None)
authlib/oauth2/client.py:323
↓ 2 callersMethodensure_active_token
(self, token)
authlib/integrations/httpx_client/oauth2_client.py:140
↓ 2 callersMethodexecute_hook
(self, hook_type, *args, **kwargs)
authlib/oauth2/rfc6749/hooks.py:13
↓ 2 callersFunctionexists_nonce_in_cache
(nonce, request, timeout)
authlib/integrations/django_oauth1/nonce.py:4
↓ 2 callersMethodfrom_dict
(cls, token)
authlib/oauth2/rfc6749/wrappers.py:32
↓ 2 callersMethodgenerate
Generate a bearer token for OAuth 2.0 authorization token endpoint. :param client: the client that making the request. :param grant_t
authlib/oauth2/rfc7523/token.py:69
↓ 2 callersMethodgenerate_iv
(self)
authlib/jose/rfc7516/models.py:69
↓ 2 callersMethodgenerate_keys_and_prepare_headers
(self, enc_alg, key, sender_key, preset=None)
authlib/jose/rfc7516/models.py:42
↓ 2 callersMethodget_allowed_scope
A method to return a list of requested scopes which are supported by this client. For instance, there is a ``scope`` column:: def
authlib/oauth2/rfc6749/models.py:40
↓ 2 callersMethodget_authorization_grant
Find the authorization grant for current request. :param request: OAuth2Request instance. :return: grant instance
authlib/oauth2/rfc6749/authorization_server.py:236
↓ 2 callersMethodget_claims_options
Generate claims options validation from Authorization Server metadata.
authlib/oauth2/rfc7591/claims.py:235
↓ 2 callersMethodget_client_by_id
(self, client_id)
authlib/integrations/flask_oauth1/authorization_server.py:95
↓ 2 callersMethodget_client_id
(self)
authlib/oauth2/rfc8628/models.py:19
↓ 2 callersMethodget_client_id
(self)
authlib/integrations/sqla_oauth2/client_mixin.py:115
↓ 2 callersMethodget_default_redirect_uri
A method to get client default redirect_uri. For instance, the database table for client has a column called ``default_redirect_uri``::
authlib/oauth2/rfc6749/models.py:29
↓ 2 callersMethodget_encode_header
(self, client)
authlib/oidc/core/grants/_legacy.py:64
↓ 2 callersMethodget_error_description
(self)
authlib/oauth2/rfc6749/errors.py:164
↓ 2 callersMethodget_headers
(self, environ=None)
authlib/integrations/flask_oauth2/errors.py:20
↓ 2 callersMethodget_public_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:47
↓ 2 callersMethodget_registered_claims
(self)
authlib/oauth2/claims.py:52
↓ 2 callersMethodget_server_jwks
Return the server's JSON Web Key Set for validating ID tokens.
authlib/oidc/rpinitiated/end_session.py:259
↓ 2 callersMethodget_server_metadata
Return server metadata which includes supported grant types, response types and etc.
authlib/oauth2/rfc7591/endpoint.py:151
↓ 2 callersMethodget_temporary_credential
Get the temporary credential from database or cache. A temporary credential should share the same methods as described in models of ``
authlib/oauth1/rfc5849/authorization_server.py:277
↓ 2 callersFunctionget_token_response
(factory, server)
tests/django/test_oauth2/test_authorization_code_grant.py:184
↓ 2 callersMethodhandle_error_response
(self, error)
authlib/oauth1/rfc5849/authorization_server.py:34
↓ 2 callersFunctionhas_all_prime_factors
(obj)
authlib/jose/rfc7518/rsa_key.py:116
↓ 2 callersFunctionhmac_sha1_signature
Generate signature via HMAC-SHA1 method, per :rfc:`5849#section-3.4.2`. The "HMAC-SHA1" signature method uses the HMAC-SHA1 signature algorit
authlib/oauth1/rfc5849/signature.py:246
↓ 2 callersMethodinit_app
(self, app, query_client=None, query_token=None, exists_nonce=None)
authlib/integrations/flask_oauth1/resource_protector.py:61
↓ 2 callersMethodis_expired
A method to define if this token is expired. For instance, there is a column ``expired_at`` in the table:: def is_expired(self):
authlib/oauth2/rfc6749/models.py:199
↓ 2 callersFunctionis_valid_language_tag
Return True if tag is a structurally valid BCP 47 language tag.
authlib/common/language.py:11
↓ 2 callersFunctionload_pem_key
(raw, ssh_type=None, key_type=None, password=None)
authlib/jose/rfc7517/_cryptography_key.py:10
↓ 2 callersMethodload_raw_key
(self)
authlib/jose/rfc7518/oct_key.py:65
↓ 2 callersFunctionplaintext_signature
Generate signature via PLAINTEXT method, per :rfc:`5849#section-3.4.4`. The "PLAINTEXT" method does not employ a signature algorithm. It MUS
authlib/oauth1/rfc5849/signature.py:306
↓ 2 callersMethodprepare_key
(self, raw_data)
authlib/jose/rfc7518/jwe_algs.py:59
↓ 2 callersMethodprepare_key
(self, raw_data)
authlib/jose/drafts/_jwe_algorithms.py:33
↓ 2 callersFunctionprepare_token_request
Prepare the access token request. Per :rfc:`6749#section-4.1.3`. The client makes a request to the token endpoint by adding the following par
authlib/oauth2/rfc6749/parameters.py:65
↓ 2 callersFunctionprivate_key_jwt_sign
( private_key, client_id, token_endpoint, alg="RS256", claims=None, **kwargs )
authlib/oauth2/rfc7523/assertion.py:62
↓ 2 callersFunctionquery_client
(client_id)
authlib/integrations/sqla_oauth2/functions.py:12
↓ 2 callersMethodquery_client
(self, client_id)
authlib/integrations/flask_oauth2/authorization_server.py:65
↓ 2 callersFunctionquote
(s, safe=b"/")
authlib/common/urls.py:101
↓ 2 callersMethodraise_error_response
Raise HTTPException for OAuth2Error. Developers can re-implement this method to customize the error response. :param error: OAuth2Err
authlib/integrations/flask_oauth2/resource_protector.py:49
↓ 2 callersMethodrequest
(self, method, url, token=None, **kwargs)
authlib/integrations/base_client/async_app.py:17
↓ 2 callersMethodrequest
Send request with auto refresh token feature (if available).
authlib/integrations/requests_client/oauth2_session.py:132
↓ 2 callersMethodresolve_client_private_key
Resolve the client private key for encoding ``id_token`` Developers MUST implement this method in subclass, e.g.:: import json
authlib/oidc/core/grants/_legacy.py:10
↓ 2 callersMethodresolve_issuer_client
Fetch client via "iss" in assertion claims. Developers MUST implement this method in subclass, e.g.:: def resolve_issuer_client(s
authlib/oauth2/rfc7523/jwt_bearer.py:204
↓ 2 callersFunctionrevoke_token
(server, factory, data)
tests/django/test_oauth2/test_revocation_endpoint.py:114
↓ 2 callersMethodsend_signal
Framework integration can re-implement this method to support signal system.
authlib/oauth2/rfc6749/authorization_server.py:163
↓ 2 callersMethodset_token
(self, token)
authlib/oauth2/auth.py:98
↓ 2 callersMethodsign
(self, auth, token_endpoint)
authlib/oauth2/rfc7523/auth.py:104
↓ 2 callersMethodsign
(self, msg, key)
authlib/jose/rfc7518/jws_algs.py:131
↓ 2 callersMethodsign
Sign the text msg with a private/sign key. :param msg: message bytes to be signed :param key: private key to sign the message
authlib/jose/rfc7515/models.py:16
↓ 2 callersMethodsign
Sign the HTTP request, add OAuth parameters and signature. :param method: HTTP method of the request. :param uri: URI of the HTTP re
authlib/oauth1/rfc5849/client_auth.py:123
↓ 2 callersMethodtoken_generator
()
authlib/integrations/flask_oauth1/authorization_server.py:75
↓ 2 callersMethodtoken_generator
()
authlib/integrations/django_oauth1/authorization_server.py:25
↓ 2 callersFunctionu32be_len_input
(s, base64=False)
authlib/jose/rfc7518/jwe_algs.py:313
↓ 2 callersFunctionunescape
(s)
authlib/oauth1/rfc5849/util.py:9
↓ 2 callersFunctionunquote
(s)
authlib/common/urls.py:105
↓ 2 callersMethoduserinfo
Fetch user info from ``userinfo_endpoint``.
authlib/integrations/base_client/sync_openid.py:32
↓ 2 callersMethodvalidate_at_hash
OPTIONAL. Access Token hash value. Its value is the base64url encoding of the left-most half of the hash of the octets of the ASCII re
authlib/oidc/core/claims.py:127
↓ 2 callersMethodvalidate_authorization_redirect_uri
(request: OAuth2Request, client)
authlib/oauth2/rfc6749/grants/base.py:118
↓ 2 callersMethodvalidate_authorization_request
Validate the request for resource owner authorization.
authlib/oauth1/rfc5849/authorization_server.py:115
↓ 2 callersFunctionvalidate_claims
(id_token, params)
tests/flask/test_oauth2/test_openid_hybrid_grant.py:77
↓ 2 callersFunctionvalidate_code_authorization_request
(grant)
authlib/oauth2/rfc6749/grants/authorization_code.py:353
↓ 2 callersFunctionvalidate_form_post_redirect_uri
Reject the ``form_post`` response mode for a non-HTTP redirect URI. With ``form_post``, the user-agent submits an HTML form to the redirect U
authlib/oidc/core/grants/util.py:55
↓ 2 callersFunctionvalidate_language_tags_array
(metadata, key)
authlib/oauth2/rfc8414/models.py:412
↓ 2 callersMethodvalidate_request
Validate the request and return a validated request object. :param request: The OAuth2Request to validate :returns: EndpointRequest w
authlib/oauth2/rfc6749/endpoint.py:58
↓ 2 callersMethodverify
(self, msg, sig, key)
authlib/jose/rfc7518/jws_algs.py:138
↓ 2 callersFunctionverify_hmac_sha1
Verify a HMAC-SHA1 signature. It fails without a client secret.
authlib/oauth1/rfc5849/signature.py:352
↓ 2 callersMethodwrap
(self, enc_alg, headers, key, preset=None)
authlib/jose/rfc7516/models.py:29
↓ 1 callersMethod__init__
(self, protected, header)
authlib/jose/rfc7515/models.py:52
↓ 1 callersMethod__init__
(self, protected, unprotected, header)
authlib/jose/rfc7516/models.py:147
↓ 1 callersMethod__init__
(self, client_model, token_model, token_generator=None)
authlib/integrations/django_oauth1/authorization_server.py:19
↓ 1 callersMethod__init__
( self, client_id=None, client_secret=None, token_endpoint_auth_method=None,
authlib/integrations/httpx_client/oauth2_client.py:222
↓ 1 callersMethod__init__
( self, client_id, client_secret=None, token=None, token_secret=None,
authlib/integrations/httpx_client/oauth1_client.py:105
↓ 1 callersMethod__init__
( self, token_endpoint, issuer, subject, audience=None, grant_
authlib/integrations/httpx_client/assertion_client.py:83
↓ 1 callersMethod__init__
(self, error=None, description=None, uri=None)
authlib/common/errors.py:14
↓ 1 callersMethod__init__
(self, description=None, uri=None, status_code=None)
authlib/oauth1/rfc5849/errors.py:15
↓ 1 callersFunction_config_client
(config, kwargs, overwrite)
authlib/integrations/base_client/registry.py:129
↓ 1 callersMethod_decode_request_object
( self, request, client: ClientMixin, raw_request_object: str )
authlib/oauth2/rfc9101/authorization_server.py:175
↓ 1 callersMethod_extract_assertion
(self, assertion: str)
authlib/oauth2/drafts/id_jag.py:272
↓ 1 callersMethod_extract_validate_hooks
(self, options: dict[str, ClaimsOption])
authlib/oauth2/claims.py:40
↓ 1 callersMethod_fetch_token
( self, url, body="", headers=None, auth=None, method="POST", **kwargs )
authlib/oauth2/client.py:441
↓ 1 callersMethod_fetch_token
(self, url, **kwargs)
authlib/integrations/httpx_client/oauth1_client.py:90
← previousnext →301–400 of 2,764, ranked by callers