MCPcopy Create free account

hub / github.com/authlib/authlib / functions

Functions2,764 in github.com/authlib/authlib

↓ 7 callersMethodserialize_json
Generate a JWS JSON Serialization. The JWS JSON Serialization represents digitally signed or MACed content as a JSON object, per :rfc:
authlib/jose/rfc7515/jws.py:120
↓ 7 callersFunctionsign_jwt_bearer_assertion
( key, issuer, audience, subject=None, issued_at=None, expires_at=None, claims=Non
authlib/oauth2/rfc7523/assertion.py:9
↓ 7 callersMethodvalidate_requested_scope
Validate if requested scope is supported by Authorization Server.
authlib/oauth2/rfc6749/grants/base.py:82
↓ 6 callersFunctioncreate_bearer_header
(token)
tests/flask/test_oauth2/oauth2_server.py:85
↓ 6 callersMethodcreate_oauth2_request
This method MUST be implemented in framework integrations. It is used to create an OAuth2Request instance. :param request: the "reque
authlib/oauth2/rfc6749/authorization_server.py:169
↓ 6 callersFunctionescape
(s)
authlib/oauth1/rfc5849/util.py:5
↓ 6 callersMethodexchange_shared_key
(self, pubkey)
authlib/jose/rfc7518/ec_key.py:46
↓ 6 callersFunctionexists_nonce
(nonce, request)
tests/flask/test_oauth2/models.py:119
↓ 6 callersMethodfetch_access_token
Fetch access token in one step. :param request_token: A previous request token for OAuth 1. :param kwargs: Extra parameters to fetch
authlib/integrations/base_client/sync_app.py:165
↓ 6 callersMethodfind_by_kid
Find the key matches the given kid value. :param kid: A string of kid :return: Key instance :raise: ValueError
authlib/jose/rfc7517/key_set.py:19
↓ 6 callersMethodget_private_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:57
↓ 6 callersMethodget_user_id
(self)
tests/flask/test_oauth2/models.py:15
↓ 6 callersFunctionmock_text_response
(body, status_code=200)
tests/clients/util.py:19
↓ 6 callersMethodparse_response_token
(self, resp)
authlib/oauth2/client.py:432
↓ 6 callersMethodprepare
(self, uri, headers, body)
authlib/oauth2/auth.py:101
↓ 6 callersFunctionread_key_file
(name)
tests/clients/util.py:11
↓ 6 callersMethodrefresh_token
Fetch a new access token using a refresh token. :param url: Refresh Token endpoint, must be HTTPS. :param refresh_token: The refresh_
authlib/oauth2/client.py:281
↓ 6 callersMethodregister_algorithm
(cls, algorithm)
authlib/jose/rfc7515/jws.py:50
↓ 6 callersMethodregister_client_auth_method
Extend client authenticate for token endpoint. :param auth: an instance to sign the request
authlib/oauth2/client.py:139
↓ 6 callersMethodregister_hook
(self, hook_type, hook)
authlib/oauth2/rfc6749/hooks.py:10
↓ 6 callersMethodregister_token_generator
Register a function as token generator for the given ``grant_type``. Developers MUST register a default token generator with a special
authlib/oauth2/rfc6749/authorization_server.py:82
↓ 6 callersMethodset_state_data
( self, session: dict[str, Any] | None, state: str, data: Any )
authlib/integrations/starlette_client/integration.py:38
↓ 6 callersFunctionsign_and_decode
(jwt_signer, client_id, token_endpoint)
tests/core/test_oauth2/test_rfc7523_private_key.py:77
↓ 6 callersFunctionsign_and_decode
(jwt_signer, client_id, client_secret, token_endpoint)
tests/core/test_oauth2/test_rfc7523_client_secret.py:71
↓ 6 callersFunctionto_native
(x, encoding="ascii")
authlib/common/encoding.py:26
↓ 6 callersMethodunwrap
(self, enc_alg, ek, headers, key)
authlib/jose/rfc7516/models.py:32
↓ 6 callersFunctionvalidate_boolean_value
(metadata, key)
authlib/oauth2/rfc8414/models.py:421
↓ 5 callersMethod_extract_session_request_params
Extract parameters for session object from the passing ``**kwargs``.
authlib/oauth2/client.py:519
↓ 5 callersFunction_request_token
Redeem an assertion with valid client credentials.
tests/flask/test_oauth2/test_id_jag_grant.py:450
↓ 5 callersFunction_sign_missing_claim
(rsa_private, claim_to_remove)
tests/core/test_oauth2/test_id_jag.py:268
↓ 5 callersMethodauthenticate_token
(self, token_string: str)
authlib/oauth2/rfc7523/validator.py:51
↓ 5 callersMethodbody
(self)
authlib/oauth2/rfc6749/requests.py:172
↓ 5 callersMethodclient_auth
(self, auth_method)
authlib/oauth2/client.py:149
↓ 5 callersFunctioncreate_resource_server
(app, use_cache=False, lazy=False)
tests/flask/test_oauth1/oauth1_server.py:226
↓ 5 callersFunctiondecorator
(func)
authlib/oauth2/rfc6749/hooks.py:21
↓ 5 callersMethoddecrypt
Decrypt the given cipher text. :param ciphertext: ciphertext in bytes :param aad: additional authenticated data in bytes :par
authlib/jose/rfc7516/models.py:87
↓ 5 callersFunctionextract_segment
(segment, error_cls, name="payload")
authlib/jose/util.py:25
↓ 5 callersMethodfetch_access_token
Method for fetching an access token from the token endpoint. This is the final step in the OAuth 1 workflow. An access token is obtai
authlib/oauth1/client.py:118
↓ 5 callersMethodget_body
Get a list of body.
authlib/oauth2/base.py:50
↓ 5 callersMethodget_client_id
A method to return client_id of the client. For instance, the value in database is saved in a column called ``client_id``:: def g
authlib/oauth2/rfc6749/models.py:18
↓ 5 callersMethodget_user_id
(self)
authlib/oauth1/rfc5849/models.py:99
↓ 5 callersFunctionhandle
(request)
tests/django/test_oauth1/test_resource_protector.py:22
↓ 5 callersMethodhandle_error_response
(self, request, error)
authlib/oauth2/rfc6749/authorization_server.py:410
↓ 5 callersMethodprepare_key
(self, raw_data)
authlib/jose/rfc7516/models.py:16
↓ 5 callersMethodquery_client
Query OAuth client by client_id. The client model class MUST implement the methods described by :class:`~authlib.oauth2.rfc6749.Client
authlib/oauth2/rfc6749/authorization_server.py:35
↓ 5 callersMethodregister_compliance_hook
Register a hook for request/response tweaking. Available hooks are: * access_token_response: invoked before token parsing. *
authlib/oauth2/client.py:410
↓ 4 callersFunction_call_validate_boolean
(key, default_value=False)
tests/core/test_oidc/test_discovery.py:152
↓ 4 callersMethod_compatible_resolve_jwt_config
(self, grant, client)
authlib/oidc/core/grants/_legacy.py:93
↓ 4 callersMethod_get_session
(self)
authlib/integrations/base_client/sync_app.py:231
↓ 4 callersFunction_make_validator
(key)
tests/core/test_oauth2/test_rfc9068_token_validator.py:22
↓ 4 callersMethod_prepare_algorithm_key
(self, header, payload, key)
authlib/jose/rfc7515/jws.py:269
↓ 4 callersMethod_validate_claim_value
(self, claim_name)
authlib/jose/rfc7519/claims.py:62
↓ 4 callersMethod_validate_crit_headers
(self, header)
authlib/jose/rfc7515/jws.py:305
↓ 4 callersMethod_validate_private_headers
(self, header, alg)
authlib/jose/rfc7516/jwe.py:753
↓ 4 callersMethod_validate_sender_key
(self, sender_key, alg)
authlib/jose/rfc7516/jwe.py:741
↓ 4 callersMethod_validate_web_uri
(self, key)
authlib/oauth2/rfc7591/claims.py:227
↓ 4 callersMethodauthenticate_token
(self, request)
tests/flask/test_oauth2/test_jwt_authorization_request.py:50
↓ 4 callersMethodcompute_derived_key
(self, shared_key, fixed_info, bit_size)
authlib/jose/rfc7518/jwe_algs.py:241
↓ 4 callersMethodcompute_fixed_info
(self, headers, bit_size)
authlib/jose/rfc7518/jwe_algs.py:223
↓ 4 callersMethodcompute_shared_key
(self, shared_key_e, shared_key_s)
authlib/jose/drafts/_jwe_algorithms.py:47
↓ 4 callersFunctioncreate_access_token
(claims, jwks, alg="RS256", typ="at+jwt")
tests/flask/test_oauth2/rfc9068/test_token_introspection.py:116
↓ 4 callersMethodcreate_authorization_url
Generate the authorization url and state for HTTP redirect. :param redirect_uri: Callback or redirect URI for authorization. :param k
authlib/integrations/base_client/sync_app.py:143
↓ 4 callersMethodcreate_logout_url
Generate the end session URL for RP-Initiated Logout. :param post_logout_redirect_uri: URI to redirect after logout. :param id_token_
authlib/integrations/base_client/sync_openid.py:88
↓ 4 callersFunctioncreate_route
()
tests/django/test_oauth1/test_resource_protector.py:18
↓ 4 callersMethodcreate_temporary_credentials_response
Validate temporary credentials token request and create response for temporary credentials token. Assume the endpoint of temporary cre
authlib/oauth1/rfc5849/authorization_server.py:70
↓ 4 callersMethoddelete
Invoke DELETE http request. If ``api_base_url`` configured, shortcut is available:: client.delete("posts/123")
authlib/integrations/base_client/sync_app.py:58
↓ 4 callersMethoddeserialize
Extract a JWE Serialization. It supports both compact and JSON serialization. :param obj: JWE compact serialization as bytes or
authlib/jose/rfc7516/jwe.py:670
↓ 4 callersMethodencrypt
Encrypt the given "msg" text. :param msg: text to be encrypt in bytes :param aad: additional authenticated data in bytes :par
authlib/jose/rfc7516/models.py:76
↓ 4 callersFunctionextract_client_kwargs
(kwargs)
authlib/integrations/httpx_client/utils.py:26
↓ 4 callersFunctionextract_header
(header_segment, error_cls)
authlib/jose/util.py:9
↓ 4 callersFunctionextract_params
Extract parameters and return them as a list of 2-tuples. Will successfully extract parameters from urlencoded query strings, dicts, or lists
authlib/common/urls.py:113
↓ 4 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/rfc6750/token.py:74
↓ 4 callersFunctiongenerate_signature_base_string
Generate signature base string from request.
authlib/oauth1/rfc5849/signature.py:240
↓ 4 callersMethodget_body
(self, environ=None)
authlib/integrations/flask_oauth2/errors.py:17
↓ 4 callersMethodget_client_id
(self)
authlib/oauth2/rfc7662/models.py:5
↓ 4 callersMethodget_header_alg
(self, header)
authlib/jose/rfc7516/jwe.py:703
↓ 4 callersMethodget_header_enc
(self, header)
authlib/jose/rfc7516/jwe.py:722
↓ 4 callersMethodget_header_zip
(self, header)
authlib/jose/rfc7516/jwe.py:732
↓ 4 callersMethodget_oauth_token
(self)
authlib/oauth1/rfc5849/models.py:108
↓ 4 callersMethodget_scope
A method to get scope of the authorization code. For instance, the column is called ``scope``:: def get_scope(self):
authlib/oauth2/rfc6749/models.py:177
↓ 4 callersFunctionget_well_known_url
Get well-known URI with issuer via :rfc:`8414#section-3.1`. :param issuer: URL of the issuer :param external: return full external url or not
authlib/oauth2/rfc8414/well_known.py:4
↓ 4 callersMethodhandle_response
Return HTTP response. Framework MUST implement this function.
authlib/oauth2/rfc6749/authorization_server.py:187
↓ 4 callersMethodhandle_response
(self, status_code, payload, headers)
authlib/oauth1/rfc5849/authorization_server.py:31
↓ 4 callersFunctionint_to_base64
(num)
authlib/common/encoding.py:55
↓ 4 callersMethodis_expired
(self)
authlib/integrations/sqla_oauth2/tokens_mixins.py:71
↓ 4 callersFunctionis_openid_scope
(scope)
authlib/oidc/core/grants/util.py:19
↓ 4 callersFunctionlist_to_scope
Convert a list of scopes to a space separated string.
authlib/oauth2/rfc6749/util.py:8
↓ 4 callersFunctionmock_assertion_response
(token, session)
tests/clients/test_requests/test_oauth2_session.py:44
↓ 4 callersFunctionmock_raw_response
(body, status_code)
tests/clients/test_requests/test_oauth2_session.py:33
↓ 4 callersMethodprepare_key
Prepare key for signing and verifying signature.
authlib/jose/rfc7515/models.py:12
↓ 4 callersMethodregister_token_validator
Register a token validator for a given Authorization type. Authlib has a built-in BearerTokenValidator per rfc6750.
authlib/oauth2/rfc6749/resource_protector.py:90
↓ 4 callersMethodstream
( self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs )
authlib/integrations/httpx_client/oauth2_client.py:272
↓ 4 callersMethodtoken_from_fragment
(self, authorization_response, state=None)
authlib/oauth2/client.py:272
↓ 4 callersMethodupdate_token
(self, token, refresh_token=None, access_token=None)
authlib/integrations/flask_client/integration.py:12
↓ 4 callersFunctionvalidate_claims
(id_token, params, alg="HS256")
tests/flask/test_oauth2/test_openid_implict_grant.py:51
↓ 4 callersMethodvalidate_endpoint_request
Validate endpoint request and return the validated request object. Use this for interactive endpoints where you need to handle UI bet
authlib/oauth2/rfc6749/authorization_server.py:295
↓ 4 callersMethodvalidate_request
Validate the request and return a token.
authlib/oauth2/rfc6749/resource_protector.py:140
↓ 3 callersFunction_call_contains_invalid_value
(key, invalid_value)
tests/core/test_oidc/test_discovery.py:190
↓ 3 callersMethod_fetch_token
( self, url, body="", headers=None, auth=USE_CLIENT_DEFAULT, m
authlib/integrations/httpx_client/oauth2_client.py:157
↓ 3 callersMethod_format_state_params
(state_data, params)
authlib/integrations/base_client/sync_app.py:263
← previousnext →101–200 of 2,764, ranked by callers