From 18df5c2e3a9543a4ab69afbff5b72f462bc49edc Mon Sep 17 00:00:00 2001 From: Volker Scheuber Date: Fri, 29 Mar 2024 13:54:50 -0500 Subject: [PATCH] fixes #397 - Service accounts now use the proper scopes when created using the `frodo conn save` command --- CHANGELOG.md | 4 ++++ src/ops/ConnectionProfileOps.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 988fdb54a..26c974431 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- \#397: Service accounts now use the proper scopes when created using the `frodo conn save` command + ## [2.0.0-74] - 2024-03-23 ### Fixed diff --git a/src/ops/ConnectionProfileOps.ts b/src/ops/ConnectionProfileOps.ts index 3f5d10c49..c46226055 100644 --- a/src/ops/ConnectionProfileOps.ts +++ b/src/ops/ConnectionProfileOps.ts @@ -496,6 +496,7 @@ export async function saveConnectionProfile({ ); } if ( + state.getUseBearerTokenForAmApis() && state.getBearerTokenMeta() && state.getBearerTokenMeta().scope !== profile.svcacctScope ) {