change result as json

This commit is contained in:
Cayo Puigdefabregas 2023-09-20 16:33:20 +02:00
parent 0f26bf63c6
commit 5069c793cf
1 changed files with 10 additions and 3 deletions

View File

@ -65,11 +65,18 @@ class AddContractOidc:
logger.error(txt)
return
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)
return result
result = ", ".join(self.save())
result = self.save()
result = {
"client_id": result[0],
"client_secret": result[1]
}
print(result)
return result