Skip to content

Commit bfd6098

Browse files
committed
Handles missing OAuth Token App menu item
Addresses a scenario where the OAuth Token App menu item is not found during the unsecure connected apps diagnosis. This prevents errors and ensures the command functions correctly even when the menu item is absent.
1 parent 504f420 commit bfd6098

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`
66

7+
## [6.3.2] 2025-09-07
8+
79
- Set initPermissionSets config prop to array of strings
10+
- [hardis:org:diagnose:unsecure-connected-apps](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unsecure-connected-apps/): Handle case where OAuth Token App menu item is not found
811

912
## [6.3.1] 2025-09-07
1013

src/commands/hardis/org/diagnose/unsecure-connected-apps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ The command's technical implementation involves:
107107
const toAdd: any = {
108108
AppName: app.AppName,
109109
User: app.User ? app.User.Name : 'N/A',
110-
IsUsingAdminAuthorization: app.AppMenuItem ? app.AppMenuItem.IsUsingAdminAuthorization : "N/A"
110+
IsUsingAdminAuthorization: app.AppMenuItem ? app.AppMenuItem.IsUsingAdminAuthorization : false
111111
};
112-
if (app.AppMenuItem && app.AppMenuItem.IsUsingAdminAuthorization === false) {
112+
if (toAdd.IsUsingAdminAuthorization === false) {
113113
toAdd.statusIcon = '❌';
114114
toAdd.status = 'Unsecured';
115115
} else {

0 commit comments

Comments
 (0)