Skip to content

Commit

Permalink
Merge pull request wso2#6751 from ImalshaG/trusted-app-fix
Browse files Browse the repository at this point in the history
Fix trusted app configs getting cleared issue
  • Loading branch information
ImalshaG authored Aug 12, 2024
2 parents 0a5a1b2 + 8d49cc8 commit bc73ba3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-drinks-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.applications.v1": patch
---

Fix trusted app configs getting cleared issue
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ export const AdvancedConfigurationsForm: FunctionComponent<AdvancedConfiguration
saas: !!values.saas,
skipLoginConsent: !!values.skipConsentLogin,
skipLogoutConsent: !!values.skipConsentLogout,
trustedAppConfiguration: values.enableFIDOTrustedApps ?
{
// androidPackageName and appleAppId is same as clientAttestation.
androidPackageName: values.androidPackageName,
androidThumbprints: isEmpty(thumbprints) ? [] : thumbprints.split(","),
appleAppId: values.appleAppId,
isConsentGranted: isConsentGranted,
isFIDOTrustedApp: values.enableFIDOTrustedApps
} : undefined
trustedAppConfiguration: {
// androidPackageName and appleAppId is same as clientAttestation.
androidPackageName: values.enableFIDOTrustedApps ? values.androidPackageName : "",
androidThumbprints: values.enableFIDOTrustedApps ?
(isEmpty(thumbprints) ? [] : thumbprints.split(",")) : [],
appleAppId: values.enableFIDOTrustedApps ? values.appleAppId : "",
isConsentGranted: isConsentGranted,
isFIDOTrustedApp: values.enableFIDOTrustedApps
}
}
};

Expand Down

0 comments on commit bc73ba3

Please sign in to comment.