diff --git a/src/identity-providers/add/SamlConnectSettings.tsx b/src/identity-providers/add/SamlConnectSettings.tsx
index e6ca437d91..f07610b984 100644
--- a/src/identity-providers/add/SamlConnectSettings.tsx
+++ b/src/identity-providers/add/SamlConnectSettings.tsx
@@ -12,6 +12,7 @@ import { useRealm } from "../../context/realm-context/RealmContext";
import { DescriptorSettings } from "./DescriptorSettings";
import { getBaseUrl } from "../../util";
import { DiscoveryEndpointField } from "../component/DiscoveryEndpointField";
+import environment from "../../environment";
export const SamlConnectSettings = () => {
const { t } = useTranslation("identity-providers");
@@ -70,13 +71,18 @@ export const SamlConnectSettings = () => {
fieldLabelId="identity-providers:serviceProviderEntityId"
/>
}
+ isRequired
+ helperTextInvalid={t("common:required")}
+ validated={errors.config?.entityId ? "error" : "default"}
>
diff --git a/src/identity-providers/component/DiscoveryEndpointField.tsx b/src/identity-providers/component/DiscoveryEndpointField.tsx
index 6a0910dce6..a94834a65e 100644
--- a/src/identity-providers/component/DiscoveryEndpointField.tsx
+++ b/src/identity-providers/component/DiscoveryEndpointField.tsx
@@ -64,11 +64,15 @@ export const DiscoveryEndpointField = ({
return (
<>
}
@@ -83,11 +87,15 @@ export const DiscoveryEndpointField = ({
{discovery && (
}
@@ -113,7 +121,7 @@ export const DiscoveryEndpointField = ({
placeholder={
id === "oidc"
? "https://hostname/auth/realms/master/.well-known/openid-configuration"
- : "https://hostname/context/saml/discovery"
+ : ""
}
onBlur={() => setDiscovering(true)}
validated={