Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caffeinehit/django-oauth2-provider
/ types & classes
Types & classes
68 in github.com/caffeinehit/django-oauth2-provider
⨍
Functions
186
◇
Types & classes
68
↓ 20 callers
Class
OAuthValidationError
Exception to throw inside :class:`OAuthForm` if any OAuth2 related errors are encountered such as invalid grant type, invalid client, etc.
provider/forms.py:4
↓ 5 callers
Class
OAuthError
Exception to throw inside any views defined in :attr:`provider.views`. Any :attr:`OAuthError` thrown will be signalled to the API consumer.
provider/views.py:16
↓ 5 callers
Class
ScopeModelChoiceField
provider/oauth2/forms.py:51
↓ 2 callers
Class
ClientAuthForm
Client authentication form. Required to make sure that we're dealing with a real client. Form is used in :attr:`provider.oauth2.backends` to
provider/oauth2/forms.py:29
↓ 2 callers
Class
ClientForm
Form to create new consumers.
provider/oauth2/forms.py:16
↓ 1 callers
Class
AccessTokenBackend
Authenticate a user via access token and client object.
provider/oauth2/backends.py:113
↓ 1 callers
Class
AccessTokenManager
provider/oauth2/models.py:141
↓ 1 callers
Class
AuthorizedClientManager
provider/oauth2/models.py:70
↓ 1 callers
Class
BasicClientBackend
Backend that tries to authenticate a client through HTTP authorization headers as defined in :rfc:`2.3.1`.
provider/oauth2/backends.py:21
↓ 1 callers
Class
Grant
Default grant implementation. A grant is a code that can be swapped for an access token. Grants have a limited lifetime as defined by :at
provider/oauth2/models.py:110
↓ 1 callers
Class
PublicClientForm
provider/oauth2/forms.py:314
↓ 1 callers
Class
PublicPasswordGrantForm
provider/oauth2/forms.py:287
↓ 1 callers
Class
RefreshTokenManager
provider/oauth2/models.py:228
↓ 1 callers
Class
RequestParamsClientBackend
Backend that tries to authenticate a client through request parameters which might be in the request body or URI as defined in :rfc:`2.3.1`.
provider/oauth2/backends.py:50
Class
AccessToken
Default access token implementation. An access token is a time limited token to access a user's resources. Access tokens are outlined :r
provider/oauth2/models.py:163
Class
AccessTokenAdmin
provider/oauth2/admin.py:5
Class
AccessTokenTest
provider/oauth2/tests/test_views.py:213
Class
AccessTokenView
Implementation of :class:`provider.views.AccessToken`. .. note:: This implementation does provide all default grant types defined in
provider/oauth2/views.py:84
Class
AccessTokenViewBase
:attr:`AccessToken` handles creation and refreshing of access tokens. Implementations must implement a number of methods: * :attr:`get_
provider/views.py:365
Class
AuthBackendTest
provider/oauth2/tests/test_views.py:512
Class
AuthUtilMixin
Mixin providing common methods required in the OAuth view defined in :attr:`provider.views`.
provider/views.py:37
Class
AuthorizationCodeGrantForm
Check and return an authorization grant.
provider/oauth2/forms.py:213
Class
AuthorizationForm
A form used to ask the resource owner for authorization of a given client.
provider/oauth2/forms.py:154
Class
AuthorizationRequestForm
This form is used to validate the request data that the authorization endpoint receives from clients. Included data is specified in :rfc
provider/oauth2/forms.py:84
Class
AuthorizationTest
provider/oauth2/tests/test_views.py:70
Class
AuthorizeView
Implementation of :class:`provider.views.Authorize`.
provider/oauth2/views.py:25
Class
AuthorizeViewBase
View to handle the client authorization as outlined in :rfc:`4`. Implementation must override a set of methods: * :attr:`get_redirect_ur
provider/views.py:132
Class
AuthorizedClient
provider/oauth2/models.py:95
Class
AuthorizedClientAdmin
provider/oauth2/admin.py:21
Class
BadScopeView
provider/oauth2/tests/urls.py:26
Class
BaseBackend
Base backend used to authenticate clients as defined in :rfc:`1` against our database.
provider/oauth2/backends.py:8
Class
BaseOAuth2TestCase
provider/oauth2/tests/test_views.py:24
Class
CaptureView
Implementation of :class:`provider.views.Capture`.
provider/oauth2/views.py:11
Class
CaptureViewBase
As stated in section :rfc:`3.1.2.5` this view captures all the request parameters and redirects to another URL to avoid any leakage of reques
provider/views.py:80
Class
Client
Default client implementation. Expected fields: * :attr:`user` * :attr:`name` * :attr:`url` * :attr:`redirect_url` * :a
provider/oauth2/models.py:17
Class
ClientAdmin
provider/oauth2/admin.py:15
Class
ClientFormTest
provider/oauth2/tests/test_views.py:571
Class
DeleteExpiredTest
provider/oauth2/tests/test_views.py:621
Class
EnforceSecureTest
provider/oauth2/tests/test_views.py:547
Class
GrantAdmin
provider/oauth2/admin.py:10
Class
Meta
provider/oauth2/forms.py:20
Class
Meta
provider/oauth2/models.py:53
Class
Meta
provider/oauth2/models.py:65
Class
Meta
provider/oauth2/models.py:104
Class
Meta
provider/oauth2/models.py:136
Class
Meta
provider/oauth2/models.py:223
Class
Meta
provider/oauth2/models.py:264
Class
MiddlewareTestCase
provider/oauth2/tests/test_middleware.py:12
Class
Migration
provider/oauth2/migrations/0003_public_client_options.py:6
Class
Migration
provider/oauth2/migrations/0001_initial.py:9
Class
Migration
provider/oauth2/migrations/0002_fix_scope_size.py:6
Class
OAuthForm
Form class that creates shallow error dicts and exists early when a :class:`OAuthValidationError` is raised. The shallow error dict is r
provider/forms.py:32
Class
OAuthRegisteredScopes
provider/oauth2/mixins.py:5
Class
OAuthRequiredMixin
provider/oauth2/mixins.py:9
Class
Oauth2
provider/oauth2/apps.py:3
Class
Oauth2UserMiddleware
Middleware for using OAuth credentials to authenticate requests If the request user is not authenticated the request is checked for oaut
provider/oauth2/middleware.py:13
Class
PasswordGrantForm
Validate the password of a user on a password grant request.
provider/oauth2/forms.py:250
Class
PublicClientBackend
provider/oauth2/backends.py:96
Class
PublicPasswordBackend
Backend that tries to authenticate a client using username, password and client ID. This is only available in specific circumstances: -
provider/oauth2/backends.py:71
Class
RedirectView
Implementation of :class:`provider.views.Redirect`
provider/oauth2/views.py:77
Class
RedirectViewBase
Redirect the user back to the client with the right query parameters set. This can be either parameters indicating success or parameters indi
provider/views.py:308
Class
RefreshToken
Default refresh token implementation. A refresh token can be swapped for a new access token when said token expires. Expected fields:
provider/oauth2/models.py:239
Class
RefreshTokenGrantForm
Checks and returns a refresh token.
provider/oauth2/forms.py:173
Class
Scope
provider/oauth2/models.py:58
Class
ScopeModelMixin
provider/oauth2/forms.py:74
Class
ScopeTest
provider/oauth2/tests/test_views.py:587
Class
UserView
provider/oauth2/tests/urls.py:13
Class
UtilsTestCase
provider/tests/test_utils.py:8