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 1818class OAuthLibMixin (object ):
1919 """
2020 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+
2130 """
2231 server_class = None
2332 validator_class = None
@@ -49,7 +58,10 @@ def get_validator_class(cls):
4958 @classmethod
5059 def get_oauthlib_core_class (cls ):
5160 """
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
5365 """
5466 if not hasattr (cls , 'oauthlib_core_class' ):
5567 return OAuthLibCore
You can’t perform that action at this time.
0 commit comments