diff --git a/js/apps/admin-ui/src/clients/keys/ExportSamlKeyDialog.tsx b/js/apps/admin-ui/src/clients/keys/ExportSamlKeyDialog.tsx index ef1f342316..2e473a3c56 100644 --- a/js/apps/admin-ui/src/clients/keys/ExportSamlKeyDialog.tsx +++ b/js/apps/admin-ui/src/clients/keys/ExportSamlKeyDialog.tsx @@ -8,15 +8,18 @@ import { adminClient } from "../../admin-client"; import { useAlerts } from "../../components/alert/Alerts"; import { useRealm } from "../../context/realm-context/RealmContext"; import { KeyForm, getFileExtension } from "./GenerateKeyDialog"; +import { KeyTypes } from "./SamlKeys"; type ExportSamlKeyDialogProps = { clientId: string; close: () => void; + keyType: KeyTypes; }; export const ExportSamlKeyDialog = ({ clientId, close, + keyType, }: ExportSamlKeyDialogProps) => { const { t } = useTranslation(); const { realm } = useRealm(); @@ -32,7 +35,7 @@ export const ExportSamlKeyDialog = ({ const keyStore = await adminClient.clients.downloadKey( { id: clientId, - attr: "saml.signing", + attr: keyType, }, config, ); diff --git a/js/apps/admin-ui/src/clients/keys/SamlKeys.tsx b/js/apps/admin-ui/src/clients/keys/SamlKeys.tsx index 452459d46d..ee11479598 100644 --- a/js/apps/admin-ui/src/clients/keys/SamlKeys.tsx +++ b/js/apps/admin-ui/src/clients/keys/SamlKeys.tsx @@ -82,7 +82,11 @@ const KeySection = ({ return ( <> {showImportDialog && ( - + )}