Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caffeinehit/django-oauth2-provider
/ functions
Functions
186 in github.com/caffeinehit/django-oauth2-provider
⨍
Functions
186
◇
Types & classes
68
Method
get
As per :rfc:`3.2` the token endpoint *only* supports POST requests. Returns an error response.
provider/views.py:586
Method
get
(self, request, *args, **kwargs)
provider/oauth2/tests/urls.py:29
Method
get_access_token
Override to handle fetching of an existing access token. :return: ``object`` - Access token
provider/views.py:428
Method
get_access_token
(self, request, user, scope, client)
provider/oauth2/views.py:118
Method
get_authorization_code_grant
(self, request, data, client)
provider/oauth2/views.py:100
Method
get_authorization_form
(self, request, client, data, client_data)
provider/oauth2/views.py:32
Method
get_client
(self, client_id)
provider/oauth2/views.py:35
Function
get_code_expiry
Return a datetime object indicating when an authorization code should expire. Can be customized by setting :attr:`settings.OAUTH_EXPIRE_C
provider/utils.py:43
Method
get_password_grant
(self, request, data, client)
provider/oauth2/views.py:112
Method
get_redirect_url
(self, request)
provider/oauth2/views.py:21
Method
get_redirect_url
(self, request)
provider/oauth2/views.py:41
Method
get_refresh_token_grant
(self, request, data, client)
provider/oauth2/views.py:106
Method
get_request_form
(self, client, data)
provider/oauth2/views.py:29
Method
has_authorization
(self, request, client, scope_list)
provider/oauth2/views.py:44
Method
invalidate_access_token
(self, at)
provider/oauth2/views.py:159
Method
invalidate_grant
(self, grant)
provider/oauth2/views.py:145
Method
invalidate_refresh_token
(self, rt)
provider/oauth2/views.py:152
Function
long_token
Generate a hash that can be used as an application secret
provider/utils.py:22
Method
password
Handle ``grant_type=password`` requests as defined in :rfc:`4.3`.
provider/views.py:556
Method
post
(self, request)
provider/views.py:304
Method
post
As per :rfc:`3.2` the token endpoint *only* supports POST requests.
provider/views.py:595
Method
process_request
(self, request)
provider/oauth2/middleware.py:42
Method
process_response
(self, request, response)
provider/oauth2/middleware.py:79
Method
refresh_token
Handle ``grant_type=refresh_token`` requests as defined in :rfc:`6`.
provider/views.py:536
Function
rfclink
Link to the OAuth2 draft. Returns 2 part tuple containing list of nodes to insert into the document and a list of system messages. Both are
provider/sphinx.py:8
Method
save
(self, **kwargs)
provider/oauth2/forms.py:161
Method
save_authorization
(self, request, client, form, client_data)
provider/oauth2/views.py:56
Method
setUp
(self)
provider/oauth2/tests/test_middleware.py:15
Method
setUp
(self)
provider/oauth2/tests/test_views.py:73
Method
setUp
(self)
provider/oauth2/tests/test_views.py:550
Method
setUp
(self)
provider/oauth2/tests/test_views.py:588
Method
setUp
(self)
provider/oauth2/tests/test_views.py:624
Function
short_token
Generate a hash that can be used as an application identifier
provider/utils.py:13
Function
skipIfCustomUser
(wrapped)
provider/compat/__init__.py:10
Method
tearDown
(self)
provider/oauth2/tests/test_views.py:77
Method
tearDown
(self)
provider/oauth2/tests/test_views.py:553
Method
tearDown
(self)
provider/oauth2/tests/test_views.py:592
Method
tearDown
(self)
provider/oauth2/tests/test_views.py:628
Method
test_access_token_backend
(self)
provider/oauth2/tests/test_views.py:536
Method
test_access_token_enforces_SSL
(self)
provider/oauth2/tests/test_views.py:564
Method
test_access_token_get_expire_delta_value
(self)
provider/oauth2/tests/test_views.py:216
Method
test_access_token_native_client
(self)
provider/oauth2/tests/test_views.py:363
Method
test_access_token_response_valid_token_type
(self)
provider/oauth2/tests/test_views.py:507
Method
test_authorization_enforces_SSL
(self)
provider/oauth2/tests/test_views.py:556
Method
test_authorization_is_granted
(self)
provider/oauth2/tests/test_views.py:183
Method
test_authorization_is_not_granted
(self)
provider/oauth2/tests/test_views.py:167
Method
test_authorization_rejects_invalid_client_id
(self)
provider/oauth2/tests/test_views.py:103
Method
test_authorization_requires_a_valid_redirect_uri
(self)
provider/oauth2/tests/test_views.py:135
Method
test_authorization_requires_a_valid_scope
(self)
provider/oauth2/tests/test_views.py:153
Method
test_authorization_requires_client_id
(self)
provider/oauth2/tests/test_views.py:95
Method
test_authorization_requires_login
(self)
provider/oauth2/tests/test_views.py:80
Method
test_authorization_requires_response_type
(self)
provider/oauth2/tests/test_views.py:111
Method
test_authorization_requires_supported_response_type
(self)
provider/oauth2/tests/test_views.py:119
Method
test_authorize_additional_scope
(self)
provider/oauth2/tests/test_views.py:284
Method
test_authorize_every_time
(self)
provider/oauth2/tests/test_views.py:269
Method
test_authorize_once
(self)
provider/oauth2/tests/test_views.py:250
Method
test_basic_client_backend
(self)
provider/oauth2/tests/test_views.py:515
Method
test_clear_expired
(self)
provider/oauth2/tests/test_views.py:631
Method
test_client_form
(self)
provider/oauth2/tests/test_views.py:572
Method
test_escalating_the_scope
(self)
provider/oauth2/tests/test_views.py:389
Method
test_fetching_access_token_multiple_times
(self)
provider/oauth2/tests/test_views.py:350
Method
test_fetching_access_token_with_invalid_client
(self)
provider/oauth2/tests/test_views.py:225
Method
test_fetching_access_token_with_invalid_grant
(self)
provider/oauth2/tests/test_views.py:237
Method
test_fetching_access_token_with_invalid_grant_type
(self)
provider/oauth2/tests/test_views.py:331
Method
test_fetching_access_token_with_valid_grant
(self)
provider/oauth2/tests/test_views.py:328
Method
test_get_scope_ints
(self)
provider/oauth2/tests/test_views.py:604
Method
test_get_scope_names
(self)
provider/oauth2/tests/test_views.py:595
Method
test_mixin_scopes
(self)
provider/oauth2/tests/test_middleware.py:45
Method
test_no_stored_session
(self)
provider/oauth2/tests/test_middleware.py:87
Method
test_no_token
(self)
provider/oauth2/tests/test_middleware.py:48
Method
test_password_grant_confidential
(self)
provider/oauth2/tests/test_views.py:446
Method
test_password_grant_confidential_no_secret
(self)
provider/oauth2/tests/test_views.py:462
Method
test_password_grant_invalid_password_confidential
(self)
provider/oauth2/tests/test_views.py:491
Method
test_password_grant_invalid_password_public
(self)
provider/oauth2/tests/test_views.py:476
Method
test_password_grant_public
(self)
provider/oauth2/tests/test_views.py:427
Method
test_preserving_the_state_variable
(self)
provider/oauth2/tests/test_views.py:194
Method
test_refreshing_an_access_token
(self)
provider/oauth2/tests/test_views.py:404
Method
test_request_params_client_backend
(self)
provider/oauth2/tests/test_views.py:527
Method
test_template_filter
(self)
provider/oauth2/tests/test_views.py:611
Method
test_token_access
(self)
provider/oauth2/tests/test_middleware.py:57
Method
test_unauthorized_scope
(self)
provider/oauth2/tests/test_middleware.py:72
Function
to_int
Turns a list of scope names into an integer value. :: >>> scope.to_int('read') 2 >>> scope.to_int('write')
provider/scope.py:85
Function
to_names
Returns a list of scope names as defined in :attr:`provider.constants.SCOPES` for a given scope integer. >>> assert ['read', 'write'
provider/scope.py:67
Method
url_func
()
provider/oauth2/tests/test_views.py:57
Method
url_func
()
provider/oauth2/tests/test_views.py:252
Method
validate_scopes
(self, scope_list)
provider/oauth2/views.py:16
← previous
101–186 of 186, ranked by callers