MCPcopy Create free account

hub / github.com/oauthlib/oauthlib / functions

Functions1,036 in github.com/oauthlib/oauthlib

↓ 3 callersFunctionprepare_mac_header
Add an `MAC Access Authentication`_ signature to headers. Unlike OAuth 1, this HMAC signature does not require inclusion of the request paylo
oauthlib/oauth2/rfc6749/tokens.py:67
↓ 3 callersMethodprepare_refresh_token_request
Prepare an access token refresh request. Expired access tokens can be replaced by new access tokens without going through the OAuth d
oauthlib/oauth2/rfc6749/clients/base.py:293
↓ 3 callersMethodprepare_request_body
Add the client credentials to the request body. The client makes a request to the token endpoint by adding the following parameters u
oauthlib/oauth2/rfc6749/clients/backend_application.py:33
↓ 3 callersMethodprepare_request_body
Create and add a JWT assertion to the request body. :param private_key: Private key used for signing and encrypting.
oauthlib/oauth2/rfc6749/clients/service_application.py:64
↓ 3 callersMethodprepare_request_body
Add device_code to request body The client makes a request to the token endpoint by adding the device_code as a parameter using the
oauthlib/oauth2/rfc8628/clients/device.py:54
↓ 3 callersMethodprepare_request_uri
(self, uri, scope=None, **kwargs)
oauthlib/oauth2/rfc8628/clients/device.py:35
↓ 3 callersMethodprepare_token_revocation_request
Prepare a token revocation request. :param revocation_url: Provider token revocation endpoint URL. :param token: The access or refres
oauthlib/oauth2/rfc6749/clients/base.py:322
↓ 3 callersFunctionsafe_string_equals
Near-constant time string comparison. Used in order to avoid timing attacks on sensitive information such as secret keys during request veri
oauthlib/common.py:252
↓ 3 callersMethodsetUp
(self)
tests/openid/connect/core/grant_types/test_dispatchers.py:56
↓ 3 callersMethodsetUp
(self)
tests/openid/connect/core/grant_types/test_hybrid.py:25
↓ 3 callersMethodtest_sign_rsa_sha1_with_client
Test sign and verify with RSA-SHA1.
tests/oauth1/rfc5849/test_signatures.py:652
↓ 3 callersMethodtest_sign_rsa_sha256_with_client
Test sign and verify with RSA-SHA256.
tests/oauth1/rfc5849/test_signatures.py:667
↓ 3 callersMethodvalidate_client_id
Ensure client_id belong to a valid and active client. Note, while not strictly necessary it can often be very convenient to set reque
oauthlib/oauth2/rfc6749/request_validator.py:419
↓ 3 callersFunctionverify_plaintext
Verify a PLAINTEXT signature. Per `section 3.4`_ of the spec. .. _`section 3.4`: https://tools.ietf.org/html/rfc5849#section-3.4
oauthlib/oauth1/rfc5849/signature.py:841
↓ 2 callersMethod_create_cors_headers
If CORS is allowed, create the appropriate headers.
oauthlib/oauth2/rfc6749/grant_types/base.py:250
↓ 2 callersFunction_get_jwt_rsa_algorithm
Obtains an RSAAlgorithm object that implements RSA with the hash algorithm. This method maintains the ``_jwt_rsa`` cache. Returns a jwt
oauthlib/oauth1/rfc5849/signature.py:556
↓ 2 callersMethod_handle_redirects
(self, request)
oauthlib/oauth2/rfc6749/grant_types/base.py:225
↓ 2 callersMethod_handler_for_request
(self, request)
oauthlib/openid/connect/core/grant_types/dispatchers.py:22
↓ 2 callersFunction_prepare_key_plus
Prepare a PEM encoded key (public or private), by invoking the `prepare_key` method on alg with the keystr. The keystr should be a strin
oauthlib/oauth1/rfc5849/signature.py:584
↓ 2 callersMethod_raise_on_missing_token
Raise error on missing token.
oauthlib/oauth2/rfc6749/endpoints/base.py:53
↓ 2 callersMethod_raise_on_unsupported_token
Raise on unsupported tokens.
oauthlib/oauth2/rfc6749/endpoints/base.py:68
↓ 2 callersMethod_render
Render a signed request according to signature type Returns a 3-tuple containing the request URI, headers, and body. If the formenco
oauthlib/oauth1/rfc5849/__init__.py:227
↓ 2 callersMethod_run_custom_validators
(self, request, validations,
oauthlib/oauth2/rfc6749/grant_types/implicit.py:360
↓ 2 callersMethodcreate_code_challenge
Create PKCE **code_challenge** derived from the **code_verifier**. See `RFC7636 Section 4.2`_ :param code_verifier: REQUIRED. The **
oauthlib/oauth2/rfc6749/clients/base.py:499
↓ 2 callersFunctiondecode_params_utf8
Ensures that all parameters in a list of 2-element tuples are decoded to unicode using UTF-8.
oauthlib/common.py:84
↓ 2 callersMethodexpires_in
The lifetime in seconds of the "device_code" and "user_code".
oauthlib/oauth2/rfc8628/endpoints/device_authorization.py:72
↓ 2 callersMethodget_default_redirect_uri
Get the default redirect URI for the client. :param client_id: Unicode client identifier. :param request: OAuthlib request. :
oauthlib/oauth2/rfc6749/request_validator.py:121
↓ 2 callersMethodget_realms
Get realms associated with a request token. :param token: The request token string. :param request: OAuthlib request. :type r
oauthlib/oauth1/rfc5849/request_validator.py:380
↓ 2 callersMethodis_origin_allowed
Indicate if the given origin is allowed to access the token endpoint via Cross-Origin Resource Sharing (CORS). CORS is used by browser-based
oauthlib/oauth2/rfc6749/request_validator.py:656
↓ 2 callersMethodis_pkce_required
Determine if current request requires PKCE. Default, False. This is called for both "authorization" and "token" requests. Override th
oauthlib/oauth2/rfc6749/request_validator.py:581
↓ 2 callersMethodis_within_original_scope
Check if requested scopes are within a scope of the refresh token. When access tokens are refreshed the scope of the new token needs
oauthlib/oauth2/rfc6749/request_validator.py:164
↓ 2 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
oauthlib/oauth2/rfc6749/parameters.py:288
↓ 2 callersMethodparse_request_uri_response
Parse the URI query for code and state. If the resource owner grants the access request, the authorization server issues an authoriza
oauthlib/oauth2/rfc6749/clients/web_application.py:176
↓ 2 callersMethodprepare_authorization_response
Place token according to response mode. Base classes can define a default response mode for their authorization response by overridin
oauthlib/oauth2/rfc6749/grant_types/base.py:178
↓ 2 callersFunctionquote
(s, safe=b'/')
oauthlib/common.py:43
↓ 2 callersFunctionraise_from_error
(error, params=None)
oauthlib/oauth2/rfc6749/errors.py:390
↓ 2 callersMethodsetUp
(self)
tests/openid/connect/core/grant_types/test_implicit.py:25
↓ 2 callersMethodsetup_validators
(self)
tests/oauth2/rfc6749/grant_types/test_authorization_code.py:40
↓ 2 callersFunctionsign_plaintext
Sign a request using plaintext. Per `section 3.4.4`_ of the spec. The "PLAINTEXT" method does not employ a signature algorithm. It MUST
oauthlib/oauth1/rfc5849/signature.py:806
↓ 2 callersMethodthrow_error
(self, uri)
tests/oauth2/rfc6749/endpoints/test_base_endpoint.py:46
↓ 2 callersFunctionunescape
(u)
oauthlib/oauth1/rfc5849/utils.py:57
↓ 2 callersMethodvalidate_response_type
Ensure client is authorized to use the response_type requested. :param client_id: Unicode client identifier. :param response_type: Un
oauthlib/oauth2/rfc6749/request_validator.py:527
↓ 2 callersFunctionvalidate_token_parameters
Ensures token presence, token type, expiration and scope in params.
oauthlib/oauth2/rfc6749/parameters.py:448
↓ 2 callersMethodvalidate_token_request
Check the token request for normal and fatal errors. :param request: OAuthlib request. :type request: oauthlib.common.Request
oauthlib/oauth2/rfc6749/grant_types/implicit.py:259
↓ 2 callersMethodvalidate_token_request
Performs the necessary check against the request to ensure it's allowed to retrieve a token.
oauthlib/oauth2/rfc8628/grant_types/device_code.py:36
↓ 2 callersMethodverify_request_token
Verify that the given OAuth1 request token is valid. :param token: A request token string. :param request: OAuthlib request.
oauthlib/oauth1/rfc5849/request_validator.py:742
↓ 1 callersMethod__init__
:param description: A human-readable ASCII [USASCII] text providing additional information, used to assist the cl
oauthlib/oauth2/rfc6749/errors.py:20
↓ 1 callersMethod_get_signature_type_and_params
Extracts parameters from query, headers and body. Signature type is set to the source in which parameters were found.
oauthlib/oauth1/rfc5849/endpoints/base.py:27
↓ 1 callersMethod_handler_for_request
(self, request)
oauthlib/openid/connect/core/grant_types/dispatchers.py:79
↓ 1 callersMethod_inflate_claims
(self, request)
oauthlib/openid/connect/core/grant_types/base.py:36
↓ 1 callersMethod_setup_custom_validators
(self, kwargs)
oauthlib/oauth2/rfc6749/grant_types/base.py:95
↓ 1 callersMethodcheck_access_token
Checks that the token contains only safe characters and is no shorter than lower and no longer than upper.
oauthlib/oauth1/rfc5849/request_validator.py:169
↓ 1 callersMethodcheck_client_key
Check that the client key only contains safe characters and is no shorter than lower and no longer than upper.
oauthlib/oauth1/rfc5849/request_validator.py:153
↓ 1 callersMethodcheck_nonce
Checks that the nonce only contains only safe characters and is no shorter than lower and no longer than upper.
oauthlib/oauth1/rfc5849/request_validator.py:177
↓ 1 callersMethodcheck_request_token
Checks that the request token contains only safe characters and is no shorter than lower and no longer than upper.
oauthlib/oauth1/rfc5849/request_validator.py:161
↓ 1 callersMethodcheck_verifier
Checks that the verifier contains only safe characters and is no shorter than lower and no longer than upper.
oauthlib/oauth1/rfc5849/request_validator.py:185
↓ 1 callersMethodclient_authentication_required
Determine if client authentication is required for current request. According to the rfc8628, client authentication is required in the follow
oauthlib/oauth2/rfc8628/request_validator.py:5
↓ 1 callersMethodconfirm_redirect_uri
Ensure that the authorization process represented by this authorization code began with this 'redirect_uri'. If the client specifies
oauthlib/oauth2/rfc6749/request_validator.py:97
↓ 1 callersMethodcreate_access_token
Create and save a new access token. Similar to OAuth 2, indication of granted scopes will be included as a space separated list in ``
oauthlib/oauth1/rfc5849/endpoints/access_token.py:32
↓ 1 callersMethodcreate_authorization_code
Generates an authorization grant represented as a dictionary. :param request: OAuthlib request. :type request: oauthlib.comm
oauthlib/oauth2/rfc6749/grant_types/authorization_code.py:160
↓ 1 callersMethodcreate_authorization_response
Read scope and route to the designated handler.
oauthlib/openid/connect/core/grant_types/dispatchers.py:60
↓ 1 callersMethodcreate_metadata_response
Create metadata response
oauthlib/oauth2/rfc6749/endpoints/metadata.py:52
↓ 1 callersMethodcreate_request_token
Create and save a new request token. :param request: OAuthlib request. :type request: oauthlib.common.Request :param credenti
oauthlib/oauth1/rfc5849/endpoints/request_token.py:32
↓ 1 callersMethodcreate_token_response
Return token or error embedded in the URI fragment. :param request: OAuthlib request. :type request: oauthlib.common.Request
oauthlib/oauth2/rfc6749/grant_types/implicit.py:165
↓ 1 callersMethodcreate_verifier
Create and save a new request token. :param request: OAuthlib request. :type request: oauthlib.common.Request :param credenti
oauthlib/oauth1/rfc5849/endpoints/authorization.py:37
↓ 1 callersMethoddefault_flow_token_response
(self, request)
examples/device_code_flow.py:217
↓ 1 callersMethoddevice_flow_token_response
Following the rfc, this will route the device request accordingly and raise required errors. Remember that unlike other auth
examples/device_code_flow.py:225
↓ 1 callersFunctionencode_params_utf8
Ensures that all parameters in a list of 2-element tuples are encoded to bytestrings using UTF-8
oauthlib/common.py:72
↓ 1 callersMethodestimate_type
(self, request)
oauthlib/openid/connect/core/tokens.py:41
↓ 1 callersMethodfinalize_id_token
Finalize OpenID Connect ID token & Sign or Encrypt. In the OpenID Connect workflows when an ID Token is requested this method is call
oauthlib/openid/connect/core/request_validator.py:119
↓ 1 callersMethodfind_token_type
Token type identification. RFC 6749 does not provide a method for easily differentiating between different token types during protect
oauthlib/oauth2/rfc6749/endpoints/resource.py:74
↓ 1 callersFunctionfread
(fn)
setup.py:15
↓ 1 callersFunctiongenerate_age
Generate a age parameter for MAC authentication draft 00.
oauthlib/oauth2/rfc6749/utils.py:71
↓ 1 callersMethodget_access_token_secret
Retrieves the shared secret associated with the access token. :param client_key: The client/consumer key. :param token: The access to
oauthlib/oauth1/rfc5849/request_validator.py:330
↓ 1 callersMethodget_authorization_code_nonce
Extracts nonce from saved authorization code. If present in the Authentication Request, Authorization Servers MUST include a nonce C
oauthlib/openid/connect/core/request_validator.py:40
↓ 1 callersMethodget_authorization_code_scopes
Extracts scopes from saved authorization code. The scopes returned by this method is used to route token requests based on scopes pa
oauthlib/openid/connect/core/request_validator.py:16
↓ 1 callersMethodget_client_secret
Retrieves the client secret associated with the client key. :param client_key: The client/consumer key. :param request: OAuthlib requ
oauthlib/oauth1/rfc5849/request_validator.py:261
↓ 1 callersMethodget_code_challenge
Is called for every "token" requests. When the server issues the authorization code in the authorization response, it MUST associate
oauthlib/oauth2/rfc6749/request_validator.py:607
↓ 1 callersMethodget_code_challenge_method
Is called during the "token" request processing, when a ``code_verifier`` and a ``code_challenge`` has been provided. See ``.get_code
oauthlib/oauth2/rfc6749/request_validator.py:636
↓ 1 callersFunctionget_debug
Get debug mode value. :return: `True` if debug mode is on, `False` otherwise
oauthlib/__init__.py:29
↓ 1 callersMethodget_default_realms
Get the default realms for a client. :param client_key: The client/consumer key. :param request: OAuthlib request. :type requ
oauthlib/oauth1/rfc5849/request_validator.py:363
↓ 1 callersMethodget_default_scopes
Get the default scopes for the client. :param client_id: Unicode client identifier. :param request: OAuthlib request. :type r
oauthlib/oauth2/rfc6749/request_validator.py:135
↓ 1 callersMethodget_id_token
Get OpenID Connect ID token This method is OPTIONAL and is NOT RECOMMENDED. `finalize_id_token` SHOULD be implemented instead. Howeve
oauthlib/openid/connect/core/request_validator.py:80
↓ 1 callersMethodget_jwt_bearer_token
Get JWT Bearer token or OpenID Connect ID token If using OpenID Connect this SHOULD call `oauthlib.oauth2.RequestValidator.get_id_token`
oauthlib/openid/connect/core/request_validator.py:64
↓ 1 callersMethodget_oauth_signature
Get an OAuth signature to be used in signing a request To satisfy `section 3.4.1.2`_ item 2, if the request argument's headers dict a
oauthlib/oauth1/rfc5849/__init__.py:151
↓ 1 callersMethodget_original_scopes
Get the list of scopes associated with the refresh token. :param refresh_token: Unicode refresh token. :param request: OAuthlib reque
oauthlib/oauth2/rfc6749/request_validator.py:151
↓ 1 callersMethodget_realms_and_credentials
Fetch realms and credentials for the presented request token. :param uri: The full URI of the token request. :param http_method: A va
oauthlib/oauth1/rfc5849/endpoints/authorization.py:136
↓ 1 callersMethodget_redirect_uri
Get the redirect URI associated with a request token. :param token: The request token string. :param request: OAuthlib request.
oauthlib/oauth1/rfc5849/request_validator.py:395
↓ 1 callersMethodget_request_token_secret
Retrieves the shared secret associated with the request token. :param client_key: The client/consumer key. :param token: The request
oauthlib/oauth1/rfc5849/request_validator.py:297
↓ 1 callersMethodget_rsa_key
Retrieves a previously stored client provided RSA key. :param client_key: The client/consumer key. :param request: OAuthlib request.
oauthlib/oauth1/rfc5849/request_validator.py:413
↓ 1 callersMethodget_userinfo_claims
Return the UserInfo claims in JSON or Signed or Encrypted. The UserInfo Claims MUST be returned as the members of a JSON object unle
oauthlib/openid/connect/core/request_validator.py:268
↓ 1 callersMethodintrospect_token
Introspect an access or refresh token. Called once the introspect request is validated. This method should verify the *token* and eit
oauthlib/oauth2/rfc6749/request_validator.py:186
↓ 1 callersMethodinvalidate_authorization_code
Invalidate an authorization code after use. :param client_id: Unicode client identifier. :param code: The authorization code grant (r
oauthlib/oauth2/rfc6749/request_validator.py:228
↓ 1 callersMethodinvalidate_request_token
Invalidates a used request token. :param client_key: The client/consumer key. :param request_token: The request token string.
oauthlib/oauth1/rfc5849/request_validator.py:437
↓ 1 callersFunctionparams_from_uri
(uri)
oauthlib/oauth2/rfc6749/utils.py:34
↓ 1 callersFunctionparse_authorization_header
Parse an OAuth authorization header into a list of 2-tuples
oauthlib/oauth1/rfc5849/utils.py:75
↓ 1 callersFunctionparse_http_list
A unicode-safe version of urllib2.parse_http_list
oauthlib/oauth1/rfc5849/utils.py:69
↓ 1 callersFunctionparse_keqv_list
A unicode-safe version of urllib2.parse_keqv_list
oauthlib/oauth1/rfc5849/utils.py:63
↓ 1 callersMethodparse_request_uri_response
Abstract method used to parse redirection responses.
oauthlib/oauth2/rfc6749/clients/base.py:163
↓ 1 callersMethodpopulate_code_attributes
Add attributes from an auth code response to self.
oauthlib/oauth2/rfc6749/clients/base.py:567
← previousnext →101–200 of 1,036, ranked by callers