Django OAuth Toolkit provides a set of pre-defined views for different purposes:
protected_resource()
rw_protected_resource()
ApplicationDelete
ApplicationDetail
ApplicationList
ApplicationOwnerIsUserMixin
ApplicationRegistration
ApplicationUpdate
AuthorizedTokenDeleteView
AuthorizedTokensListView
ClientProtectedResourceMixin
OAuthLibMixin
OIDCLogoutOnlyMixin
OIDCOnlyMixin
ProtectedResourceMixin
ReadWriteScopedResourceMixin
ScopedResourceMixin