MCPcopy Create free account

hub / github.com/caffeinehit/django-oauth2-provider / functions

Functions186 in github.com/caffeinehit/django-oauth2-provider

Methodget
As per :rfc:`3.2` the token endpoint *only* supports POST requests. Returns an error response.
provider/views.py:586
Methodget
(self, request, *args, **kwargs)
provider/oauth2/tests/urls.py:29
Methodget_access_token
Override to handle fetching of an existing access token. :return: ``object`` - Access token
provider/views.py:428
Methodget_access_token
(self, request, user, scope, client)
provider/oauth2/views.py:118
Methodget_authorization_code_grant
(self, request, data, client)
provider/oauth2/views.py:100
Methodget_authorization_form
(self, request, client, data, client_data)
provider/oauth2/views.py:32
Methodget_client
(self, client_id)
provider/oauth2/views.py:35
Functionget_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
Methodget_password_grant
(self, request, data, client)
provider/oauth2/views.py:112
Methodget_redirect_url
(self, request)
provider/oauth2/views.py:21
Methodget_redirect_url
(self, request)
provider/oauth2/views.py:41
Methodget_refresh_token_grant
(self, request, data, client)
provider/oauth2/views.py:106
Methodget_request_form
(self, client, data)
provider/oauth2/views.py:29
Methodhas_authorization
(self, request, client, scope_list)
provider/oauth2/views.py:44
Methodinvalidate_access_token
(self, at)
provider/oauth2/views.py:159
Methodinvalidate_grant
(self, grant)
provider/oauth2/views.py:145
Methodinvalidate_refresh_token
(self, rt)
provider/oauth2/views.py:152
Functionlong_token
Generate a hash that can be used as an application secret
provider/utils.py:22
Methodpassword
Handle ``grant_type=password`` requests as defined in :rfc:`4.3`.
provider/views.py:556
Methodpost
(self, request)
provider/views.py:304
Methodpost
As per :rfc:`3.2` the token endpoint *only* supports POST requests.
provider/views.py:595
Methodprocess_request
(self, request)
provider/oauth2/middleware.py:42
Methodprocess_response
(self, request, response)
provider/oauth2/middleware.py:79
Methodrefresh_token
Handle ``grant_type=refresh_token`` requests as defined in :rfc:`6`.
provider/views.py:536
Functionrfclink
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
Methodsave
(self, **kwargs)
provider/oauth2/forms.py:161
Methodsave_authorization
(self, request, client, form, client_data)
provider/oauth2/views.py:56
MethodsetUp
(self)
provider/oauth2/tests/test_middleware.py:15
MethodsetUp
(self)
provider/oauth2/tests/test_views.py:73
MethodsetUp
(self)
provider/oauth2/tests/test_views.py:550
MethodsetUp
(self)
provider/oauth2/tests/test_views.py:588
MethodsetUp
(self)
provider/oauth2/tests/test_views.py:624
Functionshort_token
Generate a hash that can be used as an application identifier
provider/utils.py:13
FunctionskipIfCustomUser
(wrapped)
provider/compat/__init__.py:10
MethodtearDown
(self)
provider/oauth2/tests/test_views.py:77
MethodtearDown
(self)
provider/oauth2/tests/test_views.py:553
MethodtearDown
(self)
provider/oauth2/tests/test_views.py:592
MethodtearDown
(self)
provider/oauth2/tests/test_views.py:628
Methodtest_access_token_backend
(self)
provider/oauth2/tests/test_views.py:536
Methodtest_access_token_enforces_SSL
(self)
provider/oauth2/tests/test_views.py:564
Methodtest_access_token_get_expire_delta_value
(self)
provider/oauth2/tests/test_views.py:216
Methodtest_access_token_native_client
(self)
provider/oauth2/tests/test_views.py:363
Methodtest_access_token_response_valid_token_type
(self)
provider/oauth2/tests/test_views.py:507
Methodtest_authorization_enforces_SSL
(self)
provider/oauth2/tests/test_views.py:556
Methodtest_authorization_is_granted
(self)
provider/oauth2/tests/test_views.py:183
Methodtest_authorization_is_not_granted
(self)
provider/oauth2/tests/test_views.py:167
Methodtest_authorization_rejects_invalid_client_id
(self)
provider/oauth2/tests/test_views.py:103
Methodtest_authorization_requires_a_valid_redirect_uri
(self)
provider/oauth2/tests/test_views.py:135
Methodtest_authorization_requires_a_valid_scope
(self)
provider/oauth2/tests/test_views.py:153
Methodtest_authorization_requires_client_id
(self)
provider/oauth2/tests/test_views.py:95
Methodtest_authorization_requires_login
(self)
provider/oauth2/tests/test_views.py:80
Methodtest_authorization_requires_response_type
(self)
provider/oauth2/tests/test_views.py:111
Methodtest_authorization_requires_supported_response_type
(self)
provider/oauth2/tests/test_views.py:119
Methodtest_authorize_additional_scope
(self)
provider/oauth2/tests/test_views.py:284
Methodtest_authorize_every_time
(self)
provider/oauth2/tests/test_views.py:269
Methodtest_authorize_once
(self)
provider/oauth2/tests/test_views.py:250
Methodtest_basic_client_backend
(self)
provider/oauth2/tests/test_views.py:515
Methodtest_clear_expired
(self)
provider/oauth2/tests/test_views.py:631
Methodtest_client_form
(self)
provider/oauth2/tests/test_views.py:572
Methodtest_escalating_the_scope
(self)
provider/oauth2/tests/test_views.py:389
Methodtest_fetching_access_token_multiple_times
(self)
provider/oauth2/tests/test_views.py:350
Methodtest_fetching_access_token_with_invalid_client
(self)
provider/oauth2/tests/test_views.py:225
Methodtest_fetching_access_token_with_invalid_grant
(self)
provider/oauth2/tests/test_views.py:237
Methodtest_fetching_access_token_with_invalid_grant_type
(self)
provider/oauth2/tests/test_views.py:331
Methodtest_fetching_access_token_with_valid_grant
(self)
provider/oauth2/tests/test_views.py:328
Methodtest_get_scope_ints
(self)
provider/oauth2/tests/test_views.py:604
Methodtest_get_scope_names
(self)
provider/oauth2/tests/test_views.py:595
Methodtest_mixin_scopes
(self)
provider/oauth2/tests/test_middleware.py:45
Methodtest_no_stored_session
(self)
provider/oauth2/tests/test_middleware.py:87
Methodtest_no_token
(self)
provider/oauth2/tests/test_middleware.py:48
Methodtest_password_grant_confidential
(self)
provider/oauth2/tests/test_views.py:446
Methodtest_password_grant_confidential_no_secret
(self)
provider/oauth2/tests/test_views.py:462
Methodtest_password_grant_invalid_password_confidential
(self)
provider/oauth2/tests/test_views.py:491
Methodtest_password_grant_invalid_password_public
(self)
provider/oauth2/tests/test_views.py:476
Methodtest_password_grant_public
(self)
provider/oauth2/tests/test_views.py:427
Methodtest_preserving_the_state_variable
(self)
provider/oauth2/tests/test_views.py:194
Methodtest_refreshing_an_access_token
(self)
provider/oauth2/tests/test_views.py:404
Methodtest_request_params_client_backend
(self)
provider/oauth2/tests/test_views.py:527
Methodtest_template_filter
(self)
provider/oauth2/tests/test_views.py:611
Methodtest_token_access
(self)
provider/oauth2/tests/test_middleware.py:57
Methodtest_unauthorized_scope
(self)
provider/oauth2/tests/test_middleware.py:72
Functionto_int
Turns a list of scope names into an integer value. :: >>> scope.to_int('read') 2 >>> scope.to_int('write')
provider/scope.py:85
Functionto_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
Methodurl_func
()
provider/oauth2/tests/test_views.py:57
Methodurl_func
()
provider/oauth2/tests/test_views.py:252
Methodvalidate_scopes
(self, scope_list)
provider/oauth2/views.py:16
← previous101–186 of 186, ranked by callers