MCPcopy Create free account

hub / github.com/authlib/authlib / functions

Functions2,764 in github.com/authlib/authlib

↓ 1 callersMethodget_oauth_params
(self, nonce, timestamp)
authlib/oauth1/rfc5849/client_auth.py:93
↓ 1 callersMethodget_oauth_signature
Get an OAuth signature to be used in signing a request. To satisfy :rfc:`5849#section-3.4.1.2` item 2, if the request argument's head
authlib/oauth1/rfc5849/client_auth.py:78
↓ 1 callersMethodget_redirect_uri
A method to get authorization code's ``redirect_uri``. For instance, the database table for authorization code has a column called ``r
authlib/oauth2/rfc6749/models.py:141
↓ 1 callersMethodget_redirect_uri
(self)
authlib/oauth1/rfc5849/models.py:102
↓ 1 callersMethodget_request_object
Retrieve the request object at an approved ``request_uri``. This method must be implemented if ``request_uri`` is supported. For netw
authlib/oauth2/rfc9101/authorization_server.py:241
↓ 1 callersMethodget_request_object_signing_algorithms
Return the supported algorithms for verifying the ``request_object`` JWT signature. By default, this method will only return the recommended a
authlib/oauth2/rfc9101/authorization_server.py:68
↓ 1 callersFunctionget_resource
(request)
tests/django/test_oauth2/test_resource_protector.py:129
↓ 1 callersMethodget_rsa_public_key
A method to get the RSA public key for RSA-SHA1 signature method. For instance, the value is saved on column ``rsa_public_key``::
authlib/oauth1/rfc5849/models.py:26
↓ 1 callersMethodget_scope
(self)
authlib/oauth2/rfc8628/models.py:22
↓ 1 callersMethodget_scope
(self)
authlib/oauth2/rfc7662/models.py:8
↓ 1 callersMethodget_server_metadata
Return server metadata which includes supported grant types, response types and etc.
authlib/oauth2/rfc7592/endpoint.py:238
↓ 1 callersMethodget_sub_value
Return user's ID as ``sub`` value in token payload. For instance:: @staticmethod def get_sub_value(user): return str(user
authlib/oauth2/rfc7523/token.py:44
↓ 1 callersMethodget_supported_algorithms
Return the supported algorithms for userinfo signing. By default, it uses the recommended algorithms from ``joserfc``. Developer can o
authlib/oidc/core/userinfo.py:85
↓ 1 callersMethodget_token_credential
Fetch the token credential from data store like a database, framework should implement this function. :param request: OAuth1Request i
authlib/oauth1/rfc5849/resource_protector.py:32
↓ 1 callersMethodget_token_data
(self, grant_type, client, expires_in, user=None, scope=None)
authlib/oauth2/rfc7523/token.py:53
↓ 1 callersMethodget_token_grant
Find the token grant for current request. :param request: OAuth2Request instance. :return: grant instance
authlib/oauth2/rfc6749/authorization_server.py:284
↓ 1 callersMethodget_token_validator
Get token validator from registry for the given token type.
authlib/oauth2/rfc6749/resource_protector.py:101
↓ 1 callersMethodget_user
A method to get the user object associated with this token: .. code-block:: def get_user(self): return User.get(
authlib/oauth2/rfc6749/models.py:221
↓ 1 callersMethodget_user_code
(self)
authlib/oauth2/rfc8628/models.py:25
↓ 1 callersFunctionget_user_email
(request)
tests/django/test_oauth2/test_resource_protector.py:72
↓ 1 callersMethodget_user_id
(self)
tests/flask/test_oauth1/oauth1_server.py:29
↓ 1 callersMethodget_username
Returns an username from a user ID. Developers MAY re-implement this method:: def get_username(self, user_id): re
authlib/oauth2/rfc9068/introspection.py:122
↓ 1 callersMethodget_verification_uri
Define the ``verification_uri`` of device authorization endpoint. Developers MUST implement this method in subclass:: def get_ver
authlib/oauth2/rfc8628/endpoint.py:139
↓ 1 callersMethodhandle_error
(error_type, error_description)
authlib/integrations/httpx_client/oauth1_client.py:98
↓ 1 callersMethodhas
(self, key)
tests/flask/cache.py:52
↓ 1 callersMethodhas_granted_permission
Check if the client has permission to access the given user's resource. Developers MUST implement it in subclass, e.g.:: def has_
authlib/oauth2/rfc7523/jwt_bearer.py:266
↓ 1 callersMethodimport_dict_key
(cls, raw, options=None)
authlib/jose/rfc7517/asymmetric_key.py:155
↓ 1 callersMethodimport_key
Import a Key from bytes, string, PEM or dict. :return: Key instance
authlib/jose/rfc7517/jwk.py:24
↓ 1 callersMethodinit_app
Initialize later with Flask app instance.
authlib/integrations/flask_oauth2/authorization_server.py:50
↓ 1 callersMethodintrospect_client
(self, client)
authlib/oauth2/rfc7592/endpoint.py:131
↓ 1 callersMethodintrospect_token
Read given token and return its introspection metadata as a dictionary following :rfc:`7662#section-2.2`:: def introspect_token(s
authlib/oauth2/rfc7662/introspection.py:110
↓ 1 callersMethodintrospect_token
Request introspection token endpoint with the given token string, authorization server will return token information in JSON format. D
authlib/oauth2/rfc7662/token_validator.py:9
↓ 1 callersMethodintrospect_token
(self, token)
tests/flask/test_oauth2/test_introspection_endpoint.py:22
↓ 1 callersFunctioninvalid_error_characters
Check whether the string only contains characters from the restricted ASCII set defined in RFC6749 for errors. :rfc:`6749#section-4.1.2.1`
authlib/oauth2/base.py:5
↓ 1 callersMethodis_expired
(self)
authlib/oauth2/rfc7523/validator.py:25
↓ 1 callersMethodis_expired
(self)
authlib/oauth2/rfc8628/models.py:34
↓ 1 callersMethodis_post_logout_redirect_uri_legitimate
Confirm redirect_uri legitimacy when no id_token_hint is provided. Override if you have alternative confirmation mechanisms, e.g.::
authlib/oidc/rpinitiated/end_session.py:238
↓ 1 callersMethodis_post_logout_redirect_uri_legitimate
( self, request, post_logout_redirect_uri, client, logout_hint )
tests/flask/test_oauth2/test_end_session.py:30
↓ 1 callersMethodis_refresh_token_active
(self)
tests/django/test_oauth2/models.py:100
↓ 1 callersMethodis_refresh_token_active
(self)
tests/flask/test_oauth2/models.py:74
↓ 1 callersMethodis_revoked
A method to define if this token is revoked. For instance, there is a boolean column ``revoked`` in the table:: def is_revoked(se
authlib/oauth2/rfc6749/models.py:210
↓ 1 callersMethodis_revoked
(self)
authlib/oauth2/rfc7523/validator.py:28
↓ 1 callersMethodissue_token
(self, user, refresh_token)
authlib/oauth2/rfc6749/grants/refresh_token.py:130
↓ 1 callersMethodload_config
(self, config)
authlib/integrations/flask_oauth2/authorization_server.py:58
↓ 1 callersMethodload_config
(self, config)
authlib/integrations/django_oauth2/authorization_server.py:32
↓ 1 callersMethodload_dict_key
(self)
authlib/jose/rfc7518/oct_key.py:68
↓ 1 callersMethodload_dict_key
(self)
authlib/jose/rfc7517/base_key.py:65
↓ 1 callersMethodload_private_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:83
↓ 1 callersMethodload_public_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:86
↓ 1 callersMethodload_raw_key
(self)
authlib/jose/rfc7517/asymmetric_key.py:65
↓ 1 callersFunctionnormalize_base_string_uri
Normalize Base String URI per :rfc:`5849#section-3.4.1.2`. For example, the HTTP request:: GET /r%20v/X?id=123 HTTP/1.1 Host: EX
authlib/oauth1/rfc5849/signature.py:82
↓ 1 callersFunctionnormalize_parameters
Normalize parameters per :rfc:`5849#section-3.4.1.3.2`. For example, the list of parameters from the previous section would be normalized as
authlib/oauth1/rfc5849/signature.py:151
↓ 1 callersFunctionoperator_and
(request)
tests/django/test_oauth2/test_resource_protector.py:106
↓ 1 callersFunctionoperator_or
(request)
tests/django/test_oauth2/test_resource_protector.py:111
↓ 1 callersFunctionparse_authorization_code_response
Parse authorization grant response URI into a dict. If the resource owner grants the access request, the authorization server issues an autho
authlib/oauth2/rfc6749/parameters.py:103
↓ 1 callersMethodparse_authorization_response
Extract parameters from the post authorization redirect response URL. :param url: The full URL that resulted from the user being redi
authlib/oauth1/client.py:136
↓ 1 callersFunctionparse_implicit_response
Parse the implicit token response URI into a dict. If the resource owner grants the access request, the authorization server issues an access
authlib/oauth2/rfc6749/parameters.py:154
↓ 1 callersMethodparse_request_authorization
Parse the token and token validator from request Authorization header. Here is an example of Authorization header:: Authorization
authlib/oauth2/rfc6749/resource_protector.py:110
↓ 1 callersMethodparse_response_token
(self, resp)
authlib/oauth2/rfc7521/client.py:86
↓ 1 callersMethodparse_response_token
(self, status_code, text)
authlib/oauth1/client.py:155
↓ 1 callersFunctionprepare_form_encoded_body
Prepare the Form-Encoded Body. Per :rfc:`5849#section-3.5.2`.
authlib/oauth1/rfc5849/parameters.py:75
↓ 1 callersFunctionprepare_grant_uri
Prepare the authorization grant request URI. The client constructs the request URI by adding the following parameters to the query component
authlib/oauth2/rfc6749/parameters.py:13
↓ 1 callersFunctionprepare_headers
**Prepare the Authorization header.** Per :rfc:`5849#section-3.5.1`. Protocol parameters can be transmitted using the HTTP "Authorization"
authlib/oauth1/rfc5849/parameters.py:14
↓ 1 callersFunctionprepare_raw_key
(raw)
authlib/jose/rfc7519/jwt.py:127
↓ 1 callersFunctionprepare_request_uri_query
Prepare the Request URI Query. Per :rfc:`5849#section-3.5.3`.
authlib/oauth1/rfc5849/parameters.py:85
↓ 1 callersFunctionprepare_revoke_token_request
Construct request body and headers for revocation endpoint. :param token: access_token or refresh_token string. :param token_type_hint: Optio
authlib/oauth2/rfc7009/parameters.py:4
↓ 1 callersMethodprocess_assertion_claims
Extract JWT payload claims from request "assertion", per :rfc:`7523#section-3.1`. :param assertion: assertion string value in the req
authlib/oauth2/rfc7523/client.py:120
↓ 1 callersMethodprocess_assertion_claims
Extract JWT payload claims from request "assertion", per :rfc:`7523#section-3.1`. :param assertion: assertion string value in the req
authlib/oauth2/rfc7523/jwt_bearer.py:71
↓ 1 callersMethodquery_authorization_code
Get authorization_code from previously savings. Developers MUST implement it in subclass:: def query_authorization_code(self, cod
authlib/oauth2/rfc6749/grants/authorization_code.py:316
↓ 1 callersMethodquery_device_credential
Get device credential from previously savings via ``DeviceAuthorizationEndpoint``. Developers MUST implement it in subclass:: def
authlib/oauth2/rfc8628/device_code.py:150
↓ 1 callersFunctionquery_token
(token, token_type_hint)
authlib/integrations/sqla_oauth2/functions.py:48
↓ 1 callersFunctionquery_token
(client_id, oauth_token)
tests/flask/test_oauth1/oauth1_server.py:257
↓ 1 callersMethodquery_token
Get the token from database/storage by the given token string. Developers should implement this method:: def query_token(self, to
authlib/oauth2/rfc7009/revocation.py:76
↓ 1 callersMethodquery_token
Get the token from database/storage by the given token string. Developers should implement this method:: def query_token(self, to
authlib/oauth2/rfc7662/introspection.py:93
↓ 1 callersMethodquery_token
(self, token, token_type_hint)
authlib/integrations/sqla_oauth2/functions.py:75
↓ 1 callersMethodquery_user_grant
Get user and grant via the given user code. Developers MUST implement it in subclass:: def query_user_grant(self, user_code):
authlib/oauth2/rfc8628/device_code.py:162
↓ 1 callersFunctionquote_url
(s)
authlib/common/urls.py:109
↓ 1 callersFunctionraise_http_exception
(status, body, headers)
authlib/integrations/flask_oauth2/errors.py:39
↓ 1 callersMethodrefresh_token
Using Assertions as Authorization Grants to refresh token as described in :rfc:`7521#section-4.1`.
authlib/oauth2/rfc7521/client.py:63
↓ 1 callersMethodregister
(self, method, func)
authlib/oauth2/rfc6749/authenticate_client.py:33
↓ 1 callersFunctionregister_jwe_rfc7518
()
authlib/jose/rfc7518/jwe_zips.py:33
↓ 1 callersFunctionregister_jws_rfc7518
(cls)
authlib/jose/rfc7518/__init__.py:14
↓ 1 callersFunctionregister_jws_rfc8037
(cls)
authlib/jose/rfc8037/jws_eddsa.py:27
↓ 1 callersFunctionregister_nonce_hooks
Register nonce related hooks to authorization server. :param authorization_server: AuthorizationServer instance :param cache: Cache instance
authlib/integrations/flask_oauth1/cache.py:77
↓ 1 callersMethodregister_signature_method
Extend client signature methods. :param name: A string to represent signature method. :param sign: A function to generate signature.
authlib/oauth1/rfc5849/client_auth.py:35
↓ 1 callersFunctionregister_temporary_credential_hooks
Register temporary credential related hooks to authorization server. :param authorization_server: AuthorizationServer instance :param cache:
authlib/integrations/flask_oauth1/cache.py:4
↓ 1 callersMethodrequest
( self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs )
authlib/integrations/httpx_client/oauth2_client.py:258
↓ 1 callersMethodrequest
Send request with auto refresh token feature.
authlib/integrations/httpx_client/assertion_client.py:55
↓ 1 callersMethodrequest
Send request with auto refresh token feature.
authlib/integrations/httpx_client/assertion_client.py:114
↓ 1 callersMethodresolve_client_from_id_token_claims
Resolve client from id_token aud claim. When aud is a single string, resolves the client directly. When aud is a list, returns None (
authlib/oidc/rpinitiated/end_session.py:219
↓ 1 callersMethodresolve_client_public_key
Resolve the client public key for verifying the JWT signature. A client may have many public keys, in this case, we can retrieve it vi
authlib/oauth2/rfc9101/authorization_server.py:285
↓ 1 callersMethodresolve_client_public_key
Resolve the client public key for verifying the JWT signature. Developers MUST implement this method:: from joserfc.jwk import Ke
authlib/oauth2/rfc7523/client.py:175
↓ 1 callersMethodresolve_client_public_key
Resolve client key to decode assertion data. Developers MUST implement this method in subclass. For instance, there is a "jwks" column
authlib/oauth2/rfc7523/jwt_bearer.py:217
↓ 1 callersMethodresolve_issuer_key
Return the IdP's public key(s) for the given ``issuer``. :param issuer: ``iss`` claim identifying the IdP :param headers: JWT headers
authlib/oauth2/drafts/id_jag.py:331
↓ 1 callersMethodresolve_private_key
Return the server JSON Web Key Set. This is used to sign userinfo payloads:: def resolve_private_key(self): retu
authlib/oidc/core/userinfo.py:123
↓ 1 callersMethodresolve_public_key
Resolve a public key for decoding ``software_statement``. If ``enable_software_statement=True``, developers MUST implement this method
authlib/oauth2/rfc7591/endpoint.py:169
↓ 1 callersFunctionreturn_error_response
(error)
authlib/integrations/django_oauth2/resource_protector.py:70
↓ 1 callersMethodrevoke_access_token
Revoke a token access in case an invalid client has been requested. Developers MUST implement this method in subclass:: def revok
authlib/oauth2/rfc7592/endpoint.py:186
↓ 1 callersMethodrevoke_old_credential
The authorization server MAY revoke the old refresh token after issuing a new refresh token to the client. Developers MUST implement t
authlib/oauth2/rfc6749/grants/refresh_token.py:168
↓ 1 callersMethodrevoke_token
Mark token as revoked. Since token MUST be unique, it would be dangerous to delete it. Consider this situation: 1. Jane obtained a to
authlib/oauth2/rfc7009/revocation.py:90
← previousnext →601–700 of 2,764, ranked by callers