MCPcopy Create free account

hub / github.com/oauthlib/oauthlib / functions

Functions1,036 in github.com/oauthlib/oauthlib

Method__init__
Initialize a client with commonly used attributes. :param client_id: Client identifier given by the OAuth provider upon registration.
oauthlib/oauth2/rfc6749/clients/base.py:55
Method__init__
Initialize a JWT client with defaults for implicit use later. :param client_id: Client identifier given by the OAuth provider upon
oauthlib/oauth2/rfc6749/clients/service_application.py:32
Method__init__
(self, client_id, code=None, **kwargs)
oauthlib/oauth2/rfc6749/clients/web_application.py:39
Method__init__
Construct a new web application server. :param request_validator: An implementation of oauthlib.oauth2.rfc8
oauthlib/oauth2/rfc8628/endpoints/pre_configured.py:12
Method__init__
:param request_validator: An instance of RequestValidator. :type request_validator: oauthlib.oauth2.rfc6749.RequestValidator.
oauthlib/oauth2/rfc8628/endpoints/device_authorization.py:36
Method__init__
(self, client_id, **kwargs)
oauthlib/oauth2/rfc8628/clients/device.py:31
Method__init__
(self, request_validator=None, token_generator=None, expires_in=None, refresh_token_generator
oauthlib/openid/connect/core/tokens.py:18
Method__init__
(self, request_validator)
oauthlib/openid/connect/core/endpoints/userinfo.py:23
Method__init__
Construct a new all-grants-in-one server. :param request_validator: An implementation of oauthlib.oauth2.Re
oauthlib/openid/connect/core/endpoints/pre_configured.py:53
Method__init__
(self, default_grant=None, oidc_grant=None)
oauthlib/openid/connect/core/grant_types/dispatchers.py:18
Method__init__
(self, default_grant=None, oidc_grant=None)
oauthlib/openid/connect/core/grant_types/dispatchers.py:47
Method__init__
(self, request_validator, default_grant=None, oidc_grant=None)
oauthlib/openid/connect/core/grant_types/dispatchers.py:74
Method__init__
(self, request_validator=None, **kwargs)
oauthlib/openid/connect/core/grant_types/implicit.py:19
Method__init__
(self, request_validator=None, **kwargs)
oauthlib/openid/connect/core/grant_types/hybrid.py:20
Method__init__
(self, request_validator=None, **kwargs)
oauthlib/openid/connect/core/grant_types/refresh_token.py:18
Method__init__
(self, request_validator=None, **kwargs)
oauthlib/openid/connect/core/grant_types/authorization_code.py:18
Method__init__
description: A human-readable ASCII [USASCII] text providing additional information, used to assist the client
oauthlib/oauth1/rfc5849/errors.py:15
Method__init__
Create an OAuth 1 client. :param client_key: Client key (consumer key), mandatory. :param resource_owner_key: Resource owner key (oau
oauthlib/oauth1/rfc5849/__init__.py:91
Method__init__
(self)
oauthlib/oauth1/rfc5849/request_validator.py:110
Method__init__
(self, request_validator)
oauthlib/oauth1/rfc5849/endpoints/pre_configured.py:10
Method__init__
(self, request_validator, token_generator=None)
oauthlib/oauth1/rfc5849/endpoints/base.py:23
Method__init__
(self, scope)
tests/oauth2/rfc6749/test_utils.py:17
Method__init__
(self, request_validator=None, **kwargs)
tests/openid/connect/core/grant_types/test_base.py:13
Method__init__
The params is a list of (name, value) tuples. It is not a dictionary, because there can be multiple parameters with the same name.
tests/oauth1/rfc5849/test_signatures.py:22
Method__init__
(self, client_secret: str = None, resource_owner_secret: str = None,
tests/oauth1/rfc5849/test_signatures.py:48
Method__init__
(self)
examples/device_code_flow.py:210
Method__repr__
(self)
oauthlib/common.py:403
Method__repr__
(self)
oauthlib/oauth1/rfc5849/__init__.py:142
Method__setattr__
(self, attr, value)
oauthlib/openid/connect/core/grant_types/base.py:22
Method__setitem__
(self, k, v)
oauthlib/common.py:321
Method__str__
(self)
tests/oauth2/rfc6749/test_utils.py:20
Method_add_bearer_token
Add a bearer token to the request uri, body or authorization header.
oauthlib/oauth2/rfc6749/clients/base.py:451
Method_add_mac_token
Add a MAC token to the request authorization header. Warning: MAC token support is experimental as the spec is not yet stable.
oauthlib/oauth2/rfc6749/clients/base.py:548
Method_fail
(self, *args, **kwargs)
oauthlib/signals.py:25
Method_mocked_validate_bearer_token
(self, token, scopes, request)
tests/oauth2/rfc6749/test_tokens.py:78
Method_populate_attributes
(self, response)
oauthlib/oauth2/rfc6749/clients/base.py:562
Methodaccess_token_length
(self)
oauthlib/oauth1/rfc5849/request_validator.py:130
Methodaccess_token_length
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:272
Methodadd_id_token
(self, token, token_handler, request)
oauthlib/openid/connect/core/grant_types/implicit.py:28
Methodadd_id_token
(self, token, token_handler, request)
oauthlib/openid/connect/core/grant_types/hybrid.py:38
Methodadd_id_token
Construct an initial version of id_token, and let the request_validator sign or encrypt it. The authorization_code version o
oauthlib/openid/connect/core/grant_types/refresh_token.py:23
Methodadd_id_token
Construct an initial version of id_token, and let the request_validator sign or encrypt it. The authorization_code version o
oauthlib/openid/connect/core/grant_types/authorization_code.py:25
Methodadd_token
:param token: :param token_handler: A token handler instance, for example of type oauthlib.oauth2.Beare
oauthlib/oauth2/rfc6749/grant_types/base.py:137
Methodadditional_scopes
(self)
oauthlib/oauth2/rfc6749/tokens.py:63
Methodall_post
(self)
oauthlib/oauth2/rfc6749/grant_types/base.py:71
Methodall_pre
(self)
oauthlib/oauth2/rfc6749/grant_types/base.py:67
Methodallowed_signature_methods
(self)
oauthlib/oauth1/rfc5849/request_validator.py:114
Methodallowed_signature_methods
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:204
Methodallowed_signature_methods
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:222
Methodallowed_signature_methods
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:240
Methodauthenticate_client
(self, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:62
Methodauthenticate_client_id
(self, client_id, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:66
Methodavailable
(self)
oauthlib/oauth2/rfc6749/endpoints/base.py:38
Methodbasicauth_authenticate_client
(self, request)
tests/oauth2/rfc6749/endpoints/test_client_authentication.py:61
Methodcatch_errors
(self)
oauthlib/oauth2/rfc6749/endpoints/base.py:46
Functioncatch_errors_and_unavailability
(f)
oauthlib/oauth2/rfc6749/endpoints/base.py:91
Methodclient_authentication_required
(self, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:57
Methodclient_key_length
(self)
oauthlib/oauth1/rfc5849/request_validator.py:122
Methodclient_key_length
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:264
Functioncode_challenge_method_plain
If the "code_challenge_method" from `Section 4.3`_ was "plain", they are compared directly, i.e.: code_verifier == code_challenge.
oauthlib/oauth2/rfc6749/grant_types/authorization_code.py:52
Functioncode_challenge_method_s256
If the "code_challenge_method" from `Section 4.3`_ was "S256", the received "code_verifier" is hashed by SHA-256, base64url-encoded, and
oauthlib/oauth2/rfc6749/grant_types/authorization_code.py:18
Methodconfirm_redirect_uri
(self, client_id, code, redirect_uri, client, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:75
Methodcreate_authorization_response
Extract response_type and route to the designated handler.
oauthlib/oauth2/rfc6749/endpoints/authorization.py:86
Methodcreate_authorization_response
Create an authorization response. :param request: OAuthlib request. :type request: oauthlib.common.Request :param token_handl
oauthlib/oauth2/rfc6749/grant_types/implicit.py:118
Methodcreate_authorization_response
The client constructs the request URI by adding the following parameters to the query component of the authorization endpoint URI
oauthlib/oauth2/rfc6749/grant_types/authorization_code.py:174
Methodcreate_authorization_response
Validate the device flow request -> create the access token -> persist the token -> return the token.
oauthlib/oauth2/rfc8628/grant_types/device_code.py:13
Methodcreate_authorization_response
Read scope and route to the designated handler.
oauthlib/openid/connect/core/grant_types/dispatchers.py:31
Methodcreate_authorization_response
Create an authorization response, with a new request token if valid. :param uri: The full URI of the token request. :param http_metho
oauthlib/oauth1/rfc5849/endpoints/authorization.py:54
Methodcreate_device_authorization_response
Generate a unique device verification code and an end-user code that are valid for a limited time. Include them in the HTTP res
oauthlib/oauth2/rfc8628/endpoints/device_authorization.py:144
Functioncreate_device_code_grant
(mock_validator: mock.MagicMock)
tests/oauth2/rfc8628/grant_types/test_device_code.py:23
Methodcreate_token_response
Extract grant_type and route to the designated handler.
oauthlib/oauth2/rfc6749/endpoints/token.py:86
Methodcreate_token_response
:param request: OAuthlib request. :type request: oauthlib.common.Request :param token_handler: A token handler instance, for
oauthlib/oauth2/rfc6749/grant_types/base.py:128
Methodcreate_token_response
Return token or error in json format. :param request: OAuthlib request. :type request: oauthlib.common.Request :param token_h
oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py:69
Methodcreate_token_response
Create a new access token from a refresh_token. :param request: OAuthlib request. :type request: oauthlib.common.Request :par
oauthlib/oauth2/rfc6749/grant_types/refresh_token.py:29
Methodcreate_token_response
Validate the authorization code. The client MUST NOT use the authorization code more than once. If an authorization code is used more
oauthlib/oauth2/rfc6749/grant_types/authorization_code.py:283
Methodcreate_token_response
Return token or error in JSON format. :param request: OAuthlib request. :type request: oauthlib.common.Request :param token_h
oauthlib/oauth2/rfc6749/grant_types/client_credentials.py:49
Methodcreate_token_response
Read scope and route to the designated handler.
oauthlib/openid/connect/core/grant_types/dispatchers.py:98
Methoddefault_grant_type
(self)
oauthlib/oauth2/rfc6749/endpoints/token.py:74
Methoddefault_grant_type_handler
(self)
oauthlib/oauth2/rfc6749/endpoints/token.py:78
Methoddefault_response_type
(self)
oauthlib/oauth2/rfc6749/endpoints/authorization.py:74
Methoddefault_response_type_handler
(self)
oauthlib/oauth2/rfc6749/endpoints/authorization.py:78
Methoddefault_token
(self)
oauthlib/oauth2/rfc6749/endpoints/resource.py:50
Methoddefault_token_type
(self)
oauthlib/oauth2/rfc6749/endpoints/authorization.py:82
Methoddefault_token_type
(self)
oauthlib/oauth2/rfc6749/endpoints/token.py:82
Methoddefault_token_type_handler
(self)
oauthlib/oauth2/rfc6749/endpoints/resource.py:54
Methoddummy_access_token
Dummy access token used when an invalid token was supplied. :returns: The dummy access token string. The dummy access token should b
oauthlib/oauth1/rfc5849/request_validator.py:246
Methoddummy_access_token
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:301
Methoddummy_client
Dummy client used when an invalid client key is supplied. :returns: The dummy client key string. The dummy client should be associat
oauthlib/oauth1/rfc5849/request_validator.py:206
Methoddummy_client
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:293
Methoddummy_request_token
Dummy request token used when an invalid token was supplied. :returns: The dummy request token string. The dummy request token shoul
oauthlib/oauth1/rfc5849/request_validator.py:230
Methoddummy_request_token
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:297
Methodduplicate_params
(self)
oauthlib/common.py:427
Methodenforce_ssl
(self)
oauthlib/oauth1/rfc5849/request_validator.py:150
Functionescape
Escape a unicode string in an OAuth-compatible fashion. Per `section 3.6`_ of the spec. .. _`section 3.6`: https://tools.ietf.org/html/rfc58
oauthlib/oauth1/rfc5849/utils.py:41
Methodestimate_type
:param request: OAuthlib request. :type request: oauthlib.common.Request
oauthlib/oauth2/rfc6749/tokens.py:340
Functionfilter_params
Decorator which filters params to remove non-oauth_* parameters Assumes the decorated method takes a params dict or list of tuples as its fir
oauthlib/oauth1/rfc5849/utils.py:17
Functiongenerate_signed_token
(private_pem, request)
oauthlib/common.py:200
Methodget_access_token_secret
(self, client_key, access_token, request)
tests/oauth1/rfc5849/endpoints/test_base.py:339
Methodget_client_secret
(self, client_key, request)
tests/oauth1/rfc5849/endpoints/test_base.py:336
Methodget_default_redirect_uri
(self, client_id, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:26
← previousnext →301–400 of 1,036, ranked by callers