Skip to content

Commit 2e1c58e

Browse files
committed
docs
1 parent af82a56 commit 2e1c58e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

oauth2_provider/views/mixins.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
class 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

0 commit comments

Comments
 (0)