very secure

authlib
d42 2020-02-24 20:18:33 +01:00
parent 56e4aaa5e3
commit c1006efefd
1 changed files with 2 additions and 2 deletions

View File

@ -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