Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/authlib/authlib
/ functions
Functions
2,764 in github.com/authlib/authlib
⨍
Functions
2,764
◇
Types & classes
369
↳
Endpoints
41
↓ 1 callers
Method
create_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 callers
Function
create_token_expires_in_generator
(expires_in_conf=None)
authlib/integrations/flask_oauth2/authorization_server.py:139
↓ 1 callers
Function
create_token_expires_in_generator
(expires_in_conf=None)
authlib/integrations/django_oauth2/authorization_server.py:113
↓ 1 callers
Function
create_token_generator
(token_generator_conf, length=42)
authlib/integrations/flask_oauth2/authorization_server.py:154
↓ 1 callers
Function
create_token_generator
(token_generator_conf, length=42)
authlib/integrations/django_oauth2/authorization_server.py:99
↓ 1 callers
Method
create_token_generator
(self, app)
authlib/integrations/flask_oauth1/authorization_server.py:67
↓ 1 callers
Method
create_update_client_response
(self, client, request)
authlib/oauth2/rfc7592/endpoint.py:80
↓ 1 callers
Function
decode_int
(b)
authlib/jose/rfc7518/util.py:11
↓ 1 callers
Method
decrypt
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 callers
Method
delete_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 callers
Method
delete_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 callers
Method
delete_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 callers
Method
dumps_private_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:77
↓ 1 callers
Method
dumps_public_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:80
↓ 1 callers
Method
dumps_public_key
(self, public_key=None)
authlib/jose/rfc8037/okp_key.py:82
↓ 1 callers
Method
encode_id_token
(self, token, request: OAuth2Request)
authlib/oidc/core/grants/code.py:62
↓ 1 callers
Method
encrypt
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 callers
Method
end_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 callers
Method
ensure_active_token
(self)
authlib/integrations/requests_client/oauth2_session.py:20
↓ 1 callers
Function
exists_nonce
(nonce, timestamp, client_id, oauth_token)
authlib/integrations/flask_oauth1/cache.py:66
↓ 1 callers
Method
exists_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 callers
Method
extract_assertion
(self, assertion: str)
authlib/oauth2/rfc7523/client.py:145
↓ 1 callers
Method
extract_assertion
(self, assertion: str)
authlib/oauth2/rfc7523/jwt_bearer.py:116
↓ 1 callers
Function
extract_basic_authorization
(headers)
authlib/oauth2/rfc6749/util.py:26
↓ 1 callers
Method
extract_client_metadata
(self, request)
authlib/oauth2/rfc7592/endpoint.py:112
↓ 1 callers
Method
extract_client_metadata
(self, request)
authlib/oauth2/rfc7591/endpoint.py:57
↓ 1 callers
Method
extract_software_statement
(self, software_statement, request)
authlib/oauth2/rfc7591/endpoint.py:84
↓ 1 callers
Method
fetch_access_token
Alias for fetch_token.
authlib/integrations/requests_client/oauth2_session.py:128
↓ 1 callers
Method
fetch_jwk_set
(self, force=False)
authlib/integrations/base_client/async_openid.py:16
↓ 1 callers
Method
filter
Return a new UserInfo object containing only the claims matching the scope passed in parameter.
authlib/oidc/core/claims.py:254
↓ 1 callers
Function
find_encode_key
(key, header)
authlib/jose/rfc7519/jwt.py:138
↓ 1 callers
Method
form
(self)
authlib/integrations/flask_oauth2/requests.py:41
↓ 1 callers
Method
from_dict
(cls, obj)
authlib/jose/rfc7515/models.py:63
↓ 1 callers
Method
from_dict
(cls, obj)
authlib/jose/rfc7516/models.py:134
↓ 1 callers
Method
generate_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 callers
Method
generate_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 callers
Method
generate_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 callers
Method
generate_client_info
(self, request)
authlib/oauth2/rfc7591/endpoint.py:98
↓ 1 callers
Method
generate_client_kwargs
(self, name, overwrite, **kwargs)
authlib/integrations/base_client/registry.py:97
↓ 1 callers
Method
generate_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 callers
Method
generate_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 callers
Method
generate_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 callers
Method
generate_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 callers
Function
generate_id_token
( token, user_info, key, iss, aud, alg="RS256", exp=3600, nonce=None, auth
authlib/oidc/core/grants/util.py:88
↓ 1 callers
Function
generate_nonce
()
authlib/oauth1/rfc5849/client_auth.py:193
↓ 1 callers
Method
generate_preset
(self, enc_alg, key)
authlib/jose/rfc7516/models.py:19
↓ 1 callers
Function
generate_timestamp
()
authlib/oauth1/rfc5849/client_auth.py:197
↓ 1 callers
Method
generate_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 callers
Method
generate_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 callers
Method
generate_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 callers
Method
generate_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 callers
Method
generate_user_info
(self, user, scopes)
tests/flask/test_oauth2/test_openid_implict_grant.py:26
↓ 1 callers
Method
generate_user_info
(self, user, scopes)
tests/flask/test_oauth2/test_openid_code_grant.py:71
↓ 1 callers
Method
generate_user_info
(self, user, scopes)
tests/flask/test_oauth2/test_openid_hybrid_grant.py:36
↓ 1 callers
Method
get_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 callers
Method
get_acr
Get the "acr" (Authentication Method Class) value of the authorization code object.
authlib/oidc/core/models.py:15
↓ 1 callers
Method
get_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 callers
Method
get_allowed_scope
(client, scope)
authlib/oauth2/rfc7523/token.py:38
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_audiences
(self)
tests/core/test_oauth2/test_id_jag.py:70
↓ 1 callers
Method
get_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 callers
Method
get_auth_time
Get "auth_time" value of the authorization code object.
authlib/oidc/core/models.py:10
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Method
get_authorization_code_claims
(self, authorization_code: AuthorizationCodeMixin)
authlib/oidc/core/grants/code.py:28
↓ 1 callers
Method
get_body
(self)
authlib/common/errors.py:41
↓ 1 callers
Function
get_claim_cls_by_response_type
(response_type)
authlib/oidc/core/claims.py:276
↓ 1 callers
Method
get_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 callers
Method
get_client_by_id
(self, client_id)
authlib/integrations/flask_oauth1/resource_protector.py:75
↓ 1 callers
Method
get_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 callers
Method
get_client_id
(self)
authlib/oauth1/rfc5849/models.py:96
↓ 1 callers
Method
get_client_id
(self)
tests/flask/test_oauth1/oauth1_server.py:79
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_error_uri
Return a URI for the given error, framework may implement this method.
authlib/oauth2/rfc6749/authorization_server.py:159
↓ 1 callers
Method
get_expires_at
(self)
authlib/oauth2/rfc7662/models.py:16
↓ 1 callers
Method
get_expires_in
(self)
authlib/oauth2/rfc7662/models.py:11
↓ 1 callers
Method
get_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 callers
Function
get_file_path
(name)
tests/util.py:10
↓ 1 callers
Method
get_headers
(self)
authlib/oauth2/rfc6749/errors.py:201
↓ 1 callers
Method
get_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 callers
Method
get_headers
(self)
authlib/common/errors.py:51
↓ 1 callers
Method
get_headers
Get a list of headers.
authlib/oauth1/rfc5849/errors.py:18
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_jwt_config
(self, grant, client)
tests/flask/test_oauth2/test_password_grant.py:29
↓ 1 callers
Method
get_jwt_config
(self, client)
tests/flask/test_oauth2/test_openid_implict_grant.py:22
↓ 1 callers
Method
get_key_curve
(key)
authlib/jose/rfc8037/okp_key.py:54
↓ 1 callers
Method
get_nonce
Get "nonce" value of the authorization code object.
authlib/oidc/core/models.py:5
← previous
next →
501–600 of 2,764, ranked by callers