fix(core): Allow secrets manager secrets to be used in credentials (#13110)

This commit is contained in:
Marc Littlemore
2025-02-07 16:43:00 +00:00
committed by GitHub
parent 4577ce0846
commit cae98e733d
5 changed files with 75 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ export class OAuth2CredentialController extends AbstractOAuthController {
async getAuthUri(req: OAuthRequest.OAuth2Credential.Auth): Promise<string> {
const credential = await this.getCredential(req);
const additionalData = await this.getAdditionalData();
const decryptedDataOriginal = await this.getDecryptedData(credential, additionalData);
const decryptedDataOriginal = await this.getDecryptedDataForAuthUri(credential, additionalData);
// At some point in the past we saved hidden scopes to credentials (but shouldn't)
// Delete scope before applying defaults to make sure new scopes are present on reconnect