From ebeceefcbf4736b90cc1aa705f240c5c0eb06efa Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Thu, 17 Feb 2022 13:51:32 +0100 Subject: [PATCH] added missing fields to saml details page (#2033) fixes: #1945 --- .../add/DescriptorSettings.tsx | 18 +++++++++++++ .../add/SamlGeneralSettings.tsx | 27 ++++++++++++++++++- .../add/saml-general-settings.css | 3 +++ src/identity-providers/help.ts | 1 + src/identity-providers/messages.ts | 2 ++ 5 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 src/identity-providers/add/saml-general-settings.css diff --git a/src/identity-providers/add/DescriptorSettings.tsx b/src/identity-providers/add/DescriptorSettings.tsx index b43df88bb9..27bed81d04 100644 --- a/src/identity-providers/add/DescriptorSettings.tsx +++ b/src/identity-providers/add/DescriptorSettings.tsx @@ -52,6 +52,24 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => { return (
+ + } + > + + { const { t } = useTranslation("identity-providers"); + const { realm } = useRealm(); const { tab } = useParams(); - const { register, errors } = useFormContext(); + const { register, errors, watch } = useFormContext(); + + const alias = watch("alias"); return ( <> @@ -51,6 +59,23 @@ export const SamlGeneralSettings = ({ id }: { id: string }) => { + + } + className="keycloak__identity-providers__saml_link" + > + + ); }; diff --git a/src/identity-providers/add/saml-general-settings.css b/src/identity-providers/add/saml-general-settings.css new file mode 100644 index 0000000000..514c0ee076 --- /dev/null +++ b/src/identity-providers/add/saml-general-settings.css @@ -0,0 +1,3 @@ +.keycloak__identity-providers__saml_link > .pf-c-form__group-control { + padding-top: var(--pf-c-form--m-horizontal__group-label--md--PaddingTop); +} \ No newline at end of file diff --git a/src/identity-providers/help.ts b/src/identity-providers/help.ts index 439cf459c3..cb130b74de 100644 --- a/src/identity-providers/help.ts +++ b/src/identity-providers/help.ts @@ -10,6 +10,7 @@ export default { "The client secret registered with the identity provider. This field is able to obtain its value from vault, use ${vault.ID} format.", displayOrder: "Number defining the order of the providers in GUI (for example, on the Login page). The lowest number will be applied first.", + endpoints: "Shows the configuration of the Service Provider endpoint", useDiscoveryEndpoint: "If this setting is enabled, the discovery endpoint will be used to fetch the provider config. Keycloak can load the config from the endpoint and automatically update the config if the source has any updates", discoveryEndpoint: diff --git a/src/identity-providers/messages.ts b/src/identity-providers/messages.ts index 71063aadcb..c265844827 100644 --- a/src/identity-providers/messages.ts +++ b/src/identity-providers/messages.ts @@ -39,6 +39,8 @@ export default { clientId: "Client ID", clientSecret: "Client Secret", displayOrder: "Display order", + endpoints: "Endpoints", + samlEndpointsLabel: "SAML 2.0 Service Provider Metadata", createSuccess: "Identity provider successfully created", createError: "Could not create the identity provider: {{error}}", orderDialogIntro: