change result as json
This commit is contained in:
parent
0f26bf63c6
commit
5069c793cf
|
@ -65,14 +65,21 @@ class AddContractOidc:
|
||||||
logger.error(txt)
|
logger.error(txt)
|
||||||
return
|
return
|
||||||
if self.member.client_id and self.member.client_secret:
|
if self.member.client_id and self.member.client_secret:
|
||||||
result = ", ".join([self.member.client_id, self.member.client_secret])
|
result = {
|
||||||
|
"client_id": self.member.client_id,
|
||||||
|
"client_secret": self.member.client_secret
|
||||||
|
}
|
||||||
print(result)
|
print(result)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
result = ", ".join(self.save())
|
result = self.save()
|
||||||
|
result = {
|
||||||
|
"client_id": result[0],
|
||||||
|
"client_secret": result[1]
|
||||||
|
}
|
||||||
print(result)
|
print(result)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
client_id = gen_salt(24)
|
client_id = gen_salt(24)
|
||||||
|
|
Reference in New Issue