fix: Don't break oauth credentials when updating them and allow fixing broken oauth credentials by repeating the authorization flow (#12563)

This commit is contained in:
Danny Martini
2025-01-13 13:48:16 +01:00
committed by GitHub
parent bee7267fe3
commit 73897c7662
5 changed files with 152 additions and 4 deletions

View File

@@ -198,7 +198,7 @@ export class CredentialsController {
throw new BadRequestError('Managed credentials cannot be updated');
}
const decryptedData = this.credentialsService.decrypt(credential);
const decryptedData = this.credentialsService.decrypt(credential, true);
const preparedCredentialData = await this.credentialsService.prepareUpdateData(
req.body,
decryptedData,