We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85aaa7f commit d632ebcCopy full SHA for d632ebc
oauth2_provider/settings.py
@@ -24,6 +24,8 @@
24
from django.utils.module_loading import import_string
25
from oauthlib.common import Request
26
27
+from oauth2_provider.utils import user_code_generator
28
+
29
30
USER_SETTINGS = getattr(settings, "OAUTH2_PROVIDER", None)
31
@@ -41,7 +43,7 @@
41
43
"CLIENT_SECRET_HASHER": "default",
42
44
"ACCESS_TOKEN_GENERATOR": None,
45
"OAUTH_DEVICE_VERIFICATION_URI": None,
- "OAUTH_DEVICE_USER_CODE_GENERATOR": None,
46
+ "OAUTH_DEVICE_USER_CODE_GENERATOR": lambda: user_code_generator(),
47
"REFRESH_TOKEN_GENERATOR": None,
48
"EXTRA_SERVER_KWARGS": {},
49
"OAUTH2_SERVER_CLASS": "oauthlib.oauth2.Server",
0 commit comments