Fix Keycloak OpenID Connect Identity provider creation (#3255)

This commit is contained in:
Curtis Welch 2022-09-15 05:44:20 -04:00 committed by GitHub
parent a4410c3ef8
commit 6fc4325871
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ export default function AddOpenIdConnect() {
const { t } = useTranslation("identity-providers"); const { t } = useTranslation("identity-providers");
const navigate = useNavigate(); const navigate = useNavigate();
const { url } = useRouteMatch(); const { url } = useRouteMatch();
const isKeycloak = url.endsWith("keycloak-oidc"); const isKeycloak = url.includes("keycloak-oidc");
const id = `${isKeycloak ? "keycloak-" : ""}oidc`; const id = `${isKeycloak ? "keycloak-" : ""}oidc`;
const form = useForm<IdentityProviderRepresentation>({ const form = useForm<IdentityProviderRepresentation>({