File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 18
18
class OAuthLibMixin (object ):
19
19
"""
20
20
This mixin decouples Django OAuth Toolkit from OAuthLib.
21
+
22
+ Users can configure the Server, Validator and OAuthlibCore
23
+ classes used by this mixin by setting the following class
24
+ variables:
25
+
26
+ * server_class
27
+ * validator_class
28
+ * oauthlib_core_class # TODO rename it as oauthlib_backend_class
29
+
21
30
"""
22
31
server_class = None
23
32
validator_class = None
@@ -49,7 +58,10 @@ def get_validator_class(cls):
49
58
@classmethod
50
59
def get_oauthlib_core_class (cls ):
51
60
"""
52
- Return the OAuthLibCore implementation class to use
61
+ Return the OAuthLibCore implementation class to use, silently
62
+ defaults to OAuthLibCore class from oauth2_provider package
63
+
64
+ # TODO rename this as get_oauthlib_backend_class
53
65
"""
54
66
if not hasattr (cls , 'oauthlib_core_class' ):
55
67
return OAuthLibCore
You can’t perform that action at this time.
0 commit comments