Skip to content

Commit e9a24de

Browse files
committed
Remove duplicate OAuthLibMixin from base classes
1 parent 8041939 commit e9a24de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Dylan Giesler
3535
Dylan Tack
3636
Emanuele Palazzetti
3737
Federico Dolce
38+
Florian Demmer
3839
Frederico Vieira
3940
Hasan Ramezani
4041
Hossein Shakiba

oauth2_provider/views/generic.py

Lines changed: 2 additions & 3 deletions
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)