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 a36b9e0 commit 418c24fCopy full SHA for 418c24f
website/routes.py
@@ -68,11 +68,6 @@ def create_client():
68
user_id=user.id,
69
)
70
71
- if client.token_endpoint_auth_method == 'none':
72
- client.client_secret = ''
73
- else:
74
- client.client_secret = gen_salt(48)
75
-
76
form = request.form
77
client_metadata = {
78
"client_name": form["client_name"],
@@ -84,6 +79,12 @@ def create_client():
84
79
"token_endpoint_auth_method": form["token_endpoint_auth_method"]
85
80
}
86
81
client.set_client_metadata(client_metadata)
82
+
83
+ if form['token_endpoint_auth_method'] == 'none':
+ client.client_secret = ''
+ else:
+ client.client_secret = gen_salt(48)
87
88
db.session.add(client)
89
db.session.commit()
90
return redirect('/')
0 commit comments