MCPcopy Create free account

hub / github.com/authlib/authlib / functions

Functions2,764 in github.com/authlib/authlib

↓ 1 callersMethodcreate_token_credential
Create and save token credential into database. This method would be re-implemented like this:: def create_token_credential(self,
authlib/oauth1/rfc5849/authorization_server.py:328
↓ 1 callersFunctioncreate_token_expires_in_generator
(expires_in_conf=None)
authlib/integrations/flask_oauth2/authorization_server.py:139
↓ 1 callersFunctioncreate_token_expires_in_generator
(expires_in_conf=None)
authlib/integrations/django_oauth2/authorization_server.py:113
↓ 1 callersFunctioncreate_token_generator
(token_generator_conf, length=42)
authlib/integrations/flask_oauth2/authorization_server.py:154
↓ 1 callersFunctioncreate_token_generator
(token_generator_conf, length=42)
authlib/integrations/django_oauth2/authorization_server.py:99
↓ 1 callersMethodcreate_token_generator
(self, app)
authlib/integrations/flask_oauth1/authorization_server.py:67
↓ 1 callersMethodcreate_update_client_response
(self, client, request)
authlib/oauth2/rfc7592/endpoint.py:80
↓ 1 callersFunctiondecode_int
(b)
authlib/jose/rfc7518/util.py:11
↓ 1 callersMethoddecrypt
Key Decryption with AES GCM. :param ciphertext: ciphertext in bytes :param aad: additional authenticated data in bytes :param
authlib/jose/rfc7518/jwe_encs.py:121
↓ 1 callersMethoddelete_authorization_code
Delete authorization code from database or cache. Developers MUST implement it in subclass, e.g.:: def delete_authorization_code(
authlib/oauth2/rfc6749/grants/authorization_code.py:329
↓ 1 callersMethoddelete_client
Delete authorization code from database or cache. Developers MUST implement it in subclass, e.g.:: def delete_client(self, client
authlib/oauth2/rfc7592/endpoint.py:208
↓ 1 callersMethoddelete_temporary_credential
Delete temporary credential from database or cache. For instance, if temporary credential is saved in cache:: def delete_temporar
authlib/oauth1/rfc5849/authorization_server.py:293
↓ 1 callersMethoddumps_private_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:77
↓ 1 callersMethoddumps_public_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:80
↓ 1 callersMethoddumps_public_key
(self, public_key=None)
authlib/jose/rfc8037/okp_key.py:82
↓ 1 callersMethodencode_id_token
(self, token, request: OAuth2Request)
authlib/oidc/core/grants/code.py:62
↓ 1 callersMethodencrypt
Key Encryption with AES GCM. :param msg: text to be encrypt in bytes :param aad: additional authenticated data in bytes :para
authlib/jose/rfc7518/jwe_encs.py:105
↓ 1 callersMethodend_session
Terminate the user's session. Implement this method to perform the actual logout logic, such as clearing session data, revoking token
authlib/oidc/rpinitiated/end_session.py:274
↓ 1 callersMethodensure_active_token
(self)
authlib/integrations/requests_client/oauth2_session.py:20
↓ 1 callersFunctionexists_nonce
(nonce, timestamp, client_id, oauth_token)
authlib/integrations/flask_oauth1/cache.py:66
↓ 1 callersMethodexists_nonce
The nonce value MUST be unique across all requests with the same timestamp, client credentials, and token combinations. :param nonce:
authlib/oauth1/rfc5849/base_server.py:107
↓ 1 callersMethodextract_assertion
(self, assertion: str)
authlib/oauth2/rfc7523/client.py:145
↓ 1 callersMethodextract_assertion
(self, assertion: str)
authlib/oauth2/rfc7523/jwt_bearer.py:116
↓ 1 callersFunctionextract_basic_authorization
(headers)
authlib/oauth2/rfc6749/util.py:26
↓ 1 callersMethodextract_client_metadata
(self, request)
authlib/oauth2/rfc7592/endpoint.py:112
↓ 1 callersMethodextract_client_metadata
(self, request)
authlib/oauth2/rfc7591/endpoint.py:57
↓ 1 callersMethodextract_software_statement
(self, software_statement, request)
authlib/oauth2/rfc7591/endpoint.py:84
↓ 1 callersMethodfetch_access_token
Alias for fetch_token.
authlib/integrations/requests_client/oauth2_session.py:128
↓ 1 callersMethodfetch_jwk_set
(self, force=False)
authlib/integrations/base_client/async_openid.py:16
↓ 1 callersMethodfilter
Return a new UserInfo object containing only the claims matching the scope passed in parameter.
authlib/oidc/core/claims.py:254
↓ 1 callersFunctionfind_encode_key
(key, header)
authlib/jose/rfc7519/jwt.py:138
↓ 1 callersMethodform
(self)
authlib/integrations/flask_oauth2/requests.py:41
↓ 1 callersMethodfrom_dict
(cls, obj)
authlib/jose/rfc7515/models.py:63
↓ 1 callersMethodfrom_dict
(cls, obj)
authlib/jose/rfc7516/models.py:134
↓ 1 callersMethodgenerate_authorization_code
"The method to generate "code" value for authorization code data. Developers may rewrite this method, or customize the code length with::
authlib/oauth2/rfc6749/grants/authorization_code.py:285
↓ 1 callersMethodgenerate_authorization_code
"The method to generate "code" value for authorization code data. Developers may rewrite this method, or customize the code length with::
authlib/oidc/core/grants/hybrid.py:25
↓ 1 callersMethodgenerate_client_id
Generate ``client_id`` value. Developers MAY rewrite this method to use their own way to generate ``client_id``.
authlib/oauth2/rfc7591/endpoint.py:139
↓ 1 callersMethodgenerate_client_info
(self, request)
authlib/oauth2/rfc7591/endpoint.py:98
↓ 1 callersMethodgenerate_client_kwargs
(self, name, overwrite, **kwargs)
authlib/integrations/base_client/registry.py:97
↓ 1 callersMethodgenerate_client_registration_info
Generate ```registration_client_uri`` and ``registration_access_token`` for RFC7592. By default this method returns the values sent in the cur
authlib/oauth2/rfc7592/endpoint.py:134
↓ 1 callersMethodgenerate_client_registration_info
Generate ```registration_client_uri`` and ``registration_access_token`` for RFC7592. This method returns ``None`` by default. Developers MAY r
authlib/oauth2/rfc7591/endpoint.py:129
↓ 1 callersMethodgenerate_client_secret
Generate ``client_secret`` value. Developers MAY rewrite this method to use their own way to generate ``client_secret``.
authlib/oauth2/rfc7591/endpoint.py:145
↓ 1 callersMethodgenerate_device_code
A method to generate ``device_code`` value for device authorization endpoint. This method will generate a random string of 42 characters.
authlib/oauth2/rfc8628/endpoint.py:132
↓ 1 callersFunctiongenerate_id_token
( token, user_info, key, iss, aud, alg="RS256", exp=3600, nonce=None, auth
authlib/oidc/core/grants/util.py:88
↓ 1 callersFunctiongenerate_nonce
()
authlib/oauth1/rfc5849/client_auth.py:193
↓ 1 callersMethodgenerate_preset
(self, enc_alg, key)
authlib/jose/rfc7516/models.py:19
↓ 1 callersFunctiongenerate_timestamp
()
authlib/oauth1/rfc5849/client_auth.py:197
↓ 1 callersMethodgenerate_user_code
A method to generate ``user_code`` value for device authorization endpoint. This method will generate a random string like MQNA-JPOZ.
authlib/oauth2/rfc8628/endpoint.py:122
↓ 1 callersMethodgenerate_user_info
Generate a :class:`~authlib.oidc.core.UserInfo` object for an user:: def generate_user_info(self, user, scope: str) -> UserInfo:
authlib/oidc/core/userinfo.py:95
↓ 1 callersMethodgenerate_user_info
Provide user information for the given scope. Developers MUST implement this method in subclass, e.g.:: from authlib.oidc.core im
authlib/oidc/core/grants/implicit.py:45
↓ 1 callersMethodgenerate_user_info
Provide user information for the given scope. Developers MUST implement this method in subclass, e.g.:: from authlib.oidc.core im
authlib/oidc/core/grants/code.py:43
↓ 1 callersMethodgenerate_user_info
(self, user, scopes)
tests/flask/test_oauth2/test_openid_implict_grant.py:26
↓ 1 callersMethodgenerate_user_info
(self, user, scopes)
tests/flask/test_oauth2/test_openid_code_grant.py:71
↓ 1 callersMethodgenerate_user_info
(self, user, scopes)
tests/flask/test_oauth2/test_openid_hybrid_grant.py:36
↓ 1 callersMethodget_acr
Authentication Context Class Reference. Returns a user-defined case sensitive string indicating the class of authentication the used p
authlib/oauth2/rfc9068/token.py:79
↓ 1 callersMethodget_acr
Get the "acr" (Authentication Method Class) value of the authorization code object.
authlib/oidc/core/models.py:15
↓ 1 callersMethodget_algorithms
Return the list of allowed algorithms for ID token validation. By default, returns all algorithms compatible with the keys in the JWKS.
authlib/oidc/rpinitiated/end_session.py:263
↓ 1 callersMethodget_allowed_scope
(client, scope)
authlib/oauth2/rfc7523/token.py:38
↓ 1 callersMethodget_allowed_scope
Get the allowed scope for token generation. Per RFC 6749 Section 3.3, if the client omits the scope parameter, the authorization serv
authlib/oauth2/rfc6750/token.py:57
↓ 1 callersMethodget_amr
Authentication Methods References. Defined by :ref:`specs/oidc` as an option list of user-defined case-sensitive strings indication wh
authlib/oauth2/rfc9068/token.py:108
↓ 1 callersMethodget_amr
Get the "amr" (Authentication Method Reference) value of the authorization code object. Have a look at :rfc:`RFC8176 <8176>` to see the full
authlib/oidc/core/models.py:20
↓ 1 callersMethodget_audiences
Return the audience for the token. By default this simply returns the client ID. Developers MAY re-implement this method to add extra
authlib/oauth2/rfc9068/token.py:66
↓ 1 callersMethodget_audiences
Return a list of valid audience identifiers for this authorization server. Per RFC 7523 Section 3, the audience identifies the authori
authlib/oauth2/rfc7523/client.py:104
↓ 1 callersMethodget_audiences
Return a list of valid audience identifiers for this authorization server. Per RFC 7523 Section 3: The authorization server MUST
authlib/oauth2/rfc7523/jwt_bearer.py:245
↓ 1 callersMethodget_audiences
Return the list of valid ``aud`` values for this AS. Per the ID-JAG draft, ``aud`` is the issuer identifier of the Resource Authoriza
authlib/oauth2/drafts/id_jag.py:322
↓ 1 callersMethodget_audiences
Parse `aud` value for id_token, default value is client id. Developers MAY rewrite this method to provide a customized audience value.
authlib/oidc/core/grants/implicit.py:64
↓ 1 callersMethodget_audiences
(self)
tests/core/test_oauth2/test_id_jag.py:70
↓ 1 callersMethodget_auth_time
User authentication time. Time when the End-User authentication occurred. Its value is a JSON number representing the number of second
authlib/oauth2/rfc9068/token.py:97
↓ 1 callersMethodget_auth_time
Get "auth_time" value of the authorization code object.
authlib/oidc/core/models.py:10
↓ 1 callersMethodget_authorization_code_challenge
Get "code_challenge" associated with this authorization code. Developers MAY re-implement it in subclass, the default logic:: def
authlib/oauth2/rfc7636/challenge.py:136
↓ 1 callersMethodget_authorization_code_challenge_method
Get "code_challenge_method" associated with this authorization code. Developers MAY re-implement it in subclass, the default logic::
authlib/oauth2/rfc7636/challenge.py:147
↓ 1 callersMethodget_authorization_code_claims
(self, authorization_code: AuthorizationCodeMixin)
authlib/oidc/core/grants/code.py:28
↓ 1 callersMethodget_body
(self)
authlib/common/errors.py:41
↓ 1 callersFunctionget_claim_cls_by_response_type
(response_type)
authlib/oidc/core/claims.py:276
↓ 1 callersMethodget_client
A method to get the client object associated with this token: .. code-block:: def get_client(self): return Clien
authlib/oauth2/rfc6749/models.py:231
↓ 1 callersMethodget_client_by_id
(self, client_id)
authlib/integrations/flask_oauth1/resource_protector.py:75
↓ 1 callersMethodget_client_claims
Return the default client claims for encoding the ``id_token``. Developers MUST implement this method in subclass, e.g.:: def get
authlib/oidc/core/grants/_legacy.py:47
↓ 1 callersMethodget_client_id
(self)
authlib/oauth1/rfc5849/models.py:96
↓ 1 callersMethodget_client_id
(self)
tests/flask/test_oauth1/oauth1_server.py:79
↓ 1 callersMethodget_client_request_uris
Return URIs registered for this client using OIDC ``request_uris``. Implement this hook when URI registration is required. The default is
authlib/oidc/core/authorization_request.py:27
↓ 1 callersMethodget_client_secret
A method to return the client_secret of this client. For instance, the database table has a column called ``client_secret``:: def
authlib/oauth1/rfc5849/models.py:13
↓ 1 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/oauth1/rfc5849/models.py:2
↓ 1 callersMethodget_error_uri
Return a URI for the given error, framework may implement this method.
authlib/oauth2/rfc6749/authorization_server.py:159
↓ 1 callersMethodget_expires_at
(self)
authlib/oauth2/rfc7662/models.py:16
↓ 1 callersMethodget_expires_in
(self)
authlib/oauth2/rfc7662/models.py:11
↓ 1 callersMethodget_extra_claims
Return extra claims to add in the JWT access token. Developers MAY re-implement this method to add identity claims like the ones in :r
authlib/oauth2/rfc9068/token.py:56
↓ 1 callersFunctionget_file_path
(name)
tests/util.py:10
↓ 1 callersMethodget_headers
(self)
authlib/oauth2/rfc6749/errors.py:201
↓ 1 callersMethodget_headers
If the protected resource request does not include authentication credentials or does not contain an access token that enables access
authlib/oauth2/rfc6750/errors.py:49
↓ 1 callersMethodget_headers
(self)
authlib/common/errors.py:51
↓ 1 callersMethodget_headers
Get a list of headers.
authlib/oauth1/rfc5849/errors.py:18
↓ 1 callersMethodget_issuer
Return the issuer URL. Developers MAY implement this method if they want to support :rfc:`RFC9207 <9207>`:: def get_issuer(self)
authlib/oauth2/rfc9207/parameter.py:36
↓ 1 callersMethodget_issuer
The OP's Issuer Identifier URL. The value is used to fill the ``iss`` claim that is mandatory in signed userinfo:: def get_issue
authlib/oidc/core/userinfo.py:111
↓ 1 callersMethodget_jti
JWT ID. Create an unique identifier for the token. Developers MAY re-implement this method:: def get_jti(self, client, gr
authlib/oauth2/rfc9068/token.py:119
↓ 1 callersMethodget_jwks
Return the JWKs that will be used to check the JWT access token signature. Developers MUST re-implement this method. Typically the JWKs are st
authlib/oauth2/rfc9068/token_validator.py:57
↓ 1 callersMethodget_jwks
Return the JWKs that will be used to sign the JWT access token. Developers MUST re-implement this method:: def get_jwks(self):
authlib/oauth2/rfc9068/token.py:47
↓ 1 callersMethodget_jwt_config
(self, grant, client)
tests/flask/test_oauth2/test_password_grant.py:29
↓ 1 callersMethodget_jwt_config
(self, client)
tests/flask/test_oauth2/test_openid_implict_grant.py:22
↓ 1 callersMethodget_key_curve
(key)
authlib/jose/rfc8037/okp_key.py:54
↓ 1 callersMethodget_nonce
Get "nonce" value of the authorization code object.
authlib/oidc/core/models.py:5
← previousnext →501–600 of 2,764, ranked by callers