very secure
parent
56e4aaa5e3
commit
c1006efefd
|
@ -1,4 +1,4 @@
|
|||
import random
|
||||
from secrets import token_hex
|
||||
import string
|
||||
|
||||
from website.app import create_app
|
||||
|
@ -44,7 +44,7 @@ c = Client()
|
|||
c.name = app_name
|
||||
c.description = app_description
|
||||
c.client_id = client_id
|
||||
c.client_secret = ''.join([random.choice("0123456789abcdef") for _ in range(32)])
|
||||
c.client_secret = token_hex(32)
|
||||
c.is_confidential = confidential
|
||||
c.redirect_uris_ = redirect_uris
|
||||
|
||||
|
|
Loading…
Reference in New Issue