Skip to content

Commit 3dc00f6

Browse files
fdemmerdopry
authored andcommitted
Remove duplicate OAuthLibMixin from base classes
1 parent a4b26b1 commit 3dc00f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Eduardo Oliveira
5151
Egor Poderiagin
5252
Emanuele Palazzetti
5353
Federico Dolce
54+
Florian Demmer
5455
Frederico Vieira
5556
Gaël Utard
5657
Hasan Ramezani

oauth2_provider/views/generic.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
from .mixins import (
44
ClientProtectedResourceMixin,
5-
OAuthLibMixin,
65
ProtectedResourceMixin,
76
ReadWriteScopedResourceMixin,
87
ScopedResourceMixin,
98
)
109

1110

12-
class ProtectedResourceView(ProtectedResourceMixin, OAuthLibMixin, View):
11+
class ProtectedResourceView(ProtectedResourceMixin, View):
1312
"""
1413
Generic view protecting resources by providing OAuth2 authentication out of the box
1514
"""
@@ -35,7 +34,7 @@ class ReadWriteScopedResourceView(ReadWriteScopedResourceMixin, ProtectedResourc
3534
pass
3635

3736

38-
class ClientProtectedResourceView(ClientProtectedResourceMixin, OAuthLibMixin, View):
37+
class ClientProtectedResourceView(ClientProtectedResourceMixin, View):
3938

4039
"""View for protecting a resource with client-credentials method.
4140
This involves allowing access tokens, Basic Auth and plain credentials in request body.

0 commit comments

Comments
 (0)