File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def hash(self):
26
26
27
27
class ClientSecretGenerator (BaseHashGenerator ):
28
28
def hash (self ):
29
- return oauthlib_generate_client_id (length = 128 , chars = CLIENT_ID_CHARACTER_SET )
29
+ return oauthlib_generate_client_id (length = oauth2_settings . CLIENT_SECRET_GENERATOR_LENGTH , chars = CLIENT_ID_CHARACTER_SET )
30
30
31
31
32
32
def generate_client_id ():
Original file line number Diff line number Diff line change 32
32
DEFAULTS = {
33
33
'CLIENT_ID_GENERATOR_CLASS' : 'oauth2_provider.generators.ClientIdGenerator' ,
34
34
'CLIENT_SECRET_GENERATOR_CLASS' : 'oauth2_provider.generators.ClientSecretGenerator' ,
35
+ 'CLIENT_SECRET_GENERATOR_LENGTH' : 128 ,
35
36
'OAUTH2_VALIDATOR_CLASS' : 'oauth2_provider.oauth2_validators.OAuth2Validator' ,
36
37
'SCOPES' : {"read" : "Reading scope" , "write" : "Writing scope" },
37
38
'READ_SCOPE' : 'read' ,
You can’t perform that action at this time.
0 commit comments