Skip to content

Commit 0aa27a0

Browse files
fdemmern2ygk
andauthored
Remove duplicate OAuthLibMixin from base classes (#1191)
Co-authored-by: Alan Crosswell <[email protected]>
1 parent ea51411 commit 0aa27a0

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
@@ -52,6 +52,7 @@ Eduardo Oliveira
5252
Egor Poderiagin
5353
Emanuele Palazzetti
5454
Federico Dolce
55+
Florian Demmer
5556
Frederico Vieira
5657
Gaël Utard
5758
Hasan Ramezani

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
"""View for protecting a resource with client-credentials method.
4039
This involves allowing access tokens, Basic Auth and plain credentials in request body.
4140
"""

0 commit comments

Comments
 (0)