Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/oauthlib/oauthlib
/ functions
Functions
1,036 in github.com/oauthlib/oauthlib
⨍
Functions
1,036
◇
Types & classes
212
↳
Endpoints
28
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
Method
access_token_length
(self)
oauthlib/oauth1/rfc5849/request_validator.py:130
Method
access_token_length
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:272
Method
add_id_token
(self, token, token_handler, request)
oauthlib/openid/connect/core/grant_types/implicit.py:28
Method
add_id_token
(self, token, token_handler, request)
oauthlib/openid/connect/core/grant_types/hybrid.py:38
Method
add_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
Method
add_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
Method
add_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
Method
additional_scopes
(self)
oauthlib/oauth2/rfc6749/tokens.py:63
Method
all_post
(self)
oauthlib/oauth2/rfc6749/grant_types/base.py:71
Method
all_pre
(self)
oauthlib/oauth2/rfc6749/grant_types/base.py:67
Method
allowed_signature_methods
(self)
oauthlib/oauth1/rfc5849/request_validator.py:114
Method
allowed_signature_methods
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:204
Method
allowed_signature_methods
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:222
Method
allowed_signature_methods
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:240
Method
authenticate_client
(self, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:62
Method
authenticate_client_id
(self, client_id, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:66
Method
available
(self)
oauthlib/oauth2/rfc6749/endpoints/base.py:38
Method
basicauth_authenticate_client
(self, request)
tests/oauth2/rfc6749/endpoints/test_client_authentication.py:61
Method
catch_errors
(self)
oauthlib/oauth2/rfc6749/endpoints/base.py:46
Function
catch_errors_and_unavailability
(f)
oauthlib/oauth2/rfc6749/endpoints/base.py:91
Method
client_authentication_required
(self, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:57
Method
client_key_length
(self)
oauthlib/oauth1/rfc5849/request_validator.py:122
Method
client_key_length
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:264
Function
code_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
Function
code_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
Method
confirm_redirect_uri
(self, client_id, code, redirect_uri, client, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:75
Method
create_authorization_response
Extract response_type and route to the designated handler.
oauthlib/oauth2/rfc6749/endpoints/authorization.py:86
Method
create_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
Method
create_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
Method
create_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
Method
create_authorization_response
Read scope and route to the designated handler.
oauthlib/openid/connect/core/grant_types/dispatchers.py:31
Method
create_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
Method
create_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
Function
create_device_code_grant
(mock_validator: mock.MagicMock)
tests/oauth2/rfc8628/grant_types/test_device_code.py:23
Method
create_token_response
Extract grant_type and route to the designated handler.
oauthlib/oauth2/rfc6749/endpoints/token.py:86
Method
create_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
Method
create_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
Method
create_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
Method
create_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
Method
create_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
Method
create_token_response
Read scope and route to the designated handler.
oauthlib/openid/connect/core/grant_types/dispatchers.py:98
Method
default_grant_type
(self)
oauthlib/oauth2/rfc6749/endpoints/token.py:74
Method
default_grant_type_handler
(self)
oauthlib/oauth2/rfc6749/endpoints/token.py:78
Method
default_response_type
(self)
oauthlib/oauth2/rfc6749/endpoints/authorization.py:74
Method
default_response_type_handler
(self)
oauthlib/oauth2/rfc6749/endpoints/authorization.py:78
Method
default_token
(self)
oauthlib/oauth2/rfc6749/endpoints/resource.py:50
Method
default_token_type
(self)
oauthlib/oauth2/rfc6749/endpoints/authorization.py:82
Method
default_token_type
(self)
oauthlib/oauth2/rfc6749/endpoints/token.py:82
Method
default_token_type_handler
(self)
oauthlib/oauth2/rfc6749/endpoints/resource.py:54
Method
dummy_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
Method
dummy_access_token
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:301
Method
dummy_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
Method
dummy_client
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:293
Method
dummy_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
Method
dummy_request_token
(self)
tests/oauth1/rfc5849/endpoints/test_base.py:297
Method
duplicate_params
(self)
oauthlib/common.py:427
Method
enforce_ssl
(self)
oauthlib/oauth1/rfc5849/request_validator.py:150
Function
escape
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
Method
estimate_type
:param request: OAuthlib request. :type request: oauthlib.common.Request
oauthlib/oauth2/rfc6749/tokens.py:340
Function
filter_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
Function
generate_signed_token
(private_pem, request)
oauthlib/common.py:200
Method
get_access_token_secret
(self, client_key, access_token, request)
tests/oauth1/rfc5849/endpoints/test_base.py:339
Method
get_client_secret
(self, client_key, request)
tests/oauth1/rfc5849/endpoints/test_base.py:336
Method
get_default_redirect_uri
(self, client_id, request, *args, **kwargs)
examples/skeleton_oauth2_web_application_server.py:26
← previous
next →
301–400 of 1,036, ranked by callers