Added potentially missing url type in form fields (#3947)
This commit is contained in:
parent
74830c60e8
commit
f000e7de69
12 changed files with 51 additions and 12 deletions
|
@ -49,7 +49,11 @@ export const AccessSettings = ({
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput id="kc-root-url" {...register("rootUrl")} />
|
<KeycloakTextInput
|
||||||
|
id="kc-root-url"
|
||||||
|
type="url"
|
||||||
|
{...register("rootUrl")}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("homeURL")}
|
label={t("homeURL")}
|
||||||
|
@ -61,7 +65,11 @@ export const AccessSettings = ({
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput id="kc-home-url" {...register("baseUrl")} />
|
<KeycloakTextInput
|
||||||
|
id="kc-home-url"
|
||||||
|
type="url"
|
||||||
|
{...register("baseUrl")}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("validRedirectUri")}
|
label={t("validRedirectUri")}
|
||||||
|
@ -150,6 +158,7 @@ export const AccessSettings = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="masterSamlProcessingUrl"
|
id="masterSamlProcessingUrl"
|
||||||
|
type="url"
|
||||||
data-testid="masterSamlProcessingUrl"
|
data-testid="masterSamlProcessingUrl"
|
||||||
{...register("adminUrl")}
|
{...register("adminUrl")}
|
||||||
/>
|
/>
|
||||||
|
@ -187,7 +196,11 @@ export const AccessSettings = ({
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput id="kc-admin-url" {...register("adminUrl")} />
|
<KeycloakTextInput
|
||||||
|
id="kc-admin-url"
|
||||||
|
type="url"
|
||||||
|
{...register("adminUrl")}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
)}
|
)}
|
||||||
{client.bearerOnly && (
|
{client.bearerOnly && (
|
||||||
|
|
|
@ -84,6 +84,7 @@ export const LogoutPanel = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="frontchannelLogoutUrl"
|
id="frontchannelLogoutUrl"
|
||||||
|
type="url"
|
||||||
{...register(
|
{...register(
|
||||||
convertAttributeNameToForm<FormFields>(
|
convertAttributeNameToForm<FormFields>(
|
||||||
"attributes.frontchannel.logout.url"
|
"attributes.frontchannel.logout.url"
|
||||||
|
@ -126,6 +127,7 @@ export const LogoutPanel = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="backchannelLogoutUrl"
|
id="backchannelLogoutUrl"
|
||||||
|
type="url"
|
||||||
{...register(
|
{...register(
|
||||||
convertAttributeNameToForm<FormFields>(
|
convertAttributeNameToForm<FormFields>(
|
||||||
"attributes.backchannel.logout.url"
|
"attributes.backchannel.logout.url"
|
||||||
|
|
|
@ -25,6 +25,7 @@ export const ApplicationUrls = () => {
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="logoUrl"
|
id="logoUrl"
|
||||||
|
type="url"
|
||||||
data-testid="logoUrl"
|
data-testid="logoUrl"
|
||||||
{...register(
|
{...register(
|
||||||
convertAttributeNameToForm<FormFields>("attributes.logoUri")
|
convertAttributeNameToForm<FormFields>("attributes.logoUri")
|
||||||
|
@ -44,6 +45,7 @@ export const ApplicationUrls = () => {
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="policyUrl"
|
id="policyUrl"
|
||||||
data-testid="policyUrl"
|
data-testid="policyUrl"
|
||||||
|
type="url"
|
||||||
{...register(
|
{...register(
|
||||||
convertAttributeNameToForm<FormFields>("attributes.policyUri")
|
convertAttributeNameToForm<FormFields>("attributes.policyUri")
|
||||||
)}
|
)}
|
||||||
|
@ -61,6 +63,7 @@ export const ApplicationUrls = () => {
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="termsOfServiceUrl"
|
id="termsOfServiceUrl"
|
||||||
|
type="url"
|
||||||
data-testid="termsOfServiceUrl"
|
data-testid="termsOfServiceUrl"
|
||||||
{...register(
|
{...register(
|
||||||
convertAttributeNameToForm<FormFields>("attributes.tosUri")
|
convertAttributeNameToForm<FormFields>("attributes.tosUri")
|
||||||
|
|
|
@ -33,6 +33,7 @@ export const FineGrainSamlEndpointConfig = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="assertionConsumerServicePostBindingURL"
|
id="assertionConsumerServicePostBindingURL"
|
||||||
|
type="url"
|
||||||
{...register("attributes.saml_assertion_consumer_url_post")}
|
{...register("attributes.saml_assertion_consumer_url_post")}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
@ -48,6 +49,7 @@ export const FineGrainSamlEndpointConfig = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="assertionConsumerServiceRedirectBindingURL"
|
id="assertionConsumerServiceRedirectBindingURL"
|
||||||
|
type="url"
|
||||||
{...register("attributes.saml_assertion_consumer_url_redirect")}
|
{...register("attributes.saml_assertion_consumer_url_redirect")}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
@ -63,6 +65,7 @@ export const FineGrainSamlEndpointConfig = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="logoutServicePostBindingURL"
|
id="logoutServicePostBindingURL"
|
||||||
|
type="url"
|
||||||
{...register("attributes.saml_single_logout_service_url_post")}
|
{...register("attributes.saml_single_logout_service_url_post")}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
@ -78,6 +81,7 @@ export const FineGrainSamlEndpointConfig = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="logoutServiceRedirectBindingURL"
|
id="logoutServiceRedirectBindingURL"
|
||||||
|
type="url"
|
||||||
{...register("attributes.saml_single_logout_service_url_redirect")}
|
{...register("attributes.saml_single_logout_service_url_redirect")}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
@ -93,6 +97,7 @@ export const FineGrainSamlEndpointConfig = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="logoutServiceArtifactBindingUrl"
|
id="logoutServiceArtifactBindingUrl"
|
||||||
|
type="url"
|
||||||
{...register("attributes.saml_single_logout_service_url_artifact")}
|
{...register("attributes.saml_single_logout_service_url_artifact")}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
@ -108,6 +113,7 @@ export const FineGrainSamlEndpointConfig = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="artifactBindingUrl"
|
id="artifactBindingUrl"
|
||||||
|
type="url"
|
||||||
{...register("attributes.saml_artifact_binding_url")}
|
{...register("attributes.saml_artifact_binding_url")}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
@ -123,6 +129,7 @@ export const FineGrainSamlEndpointConfig = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="artifactResolutionService"
|
id="artifactResolutionService"
|
||||||
|
type="url"
|
||||||
{...register("attributes.saml_artifact_resolution_service_url")}
|
{...register("attributes.saml_artifact_resolution_service_url")}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
|
|
@ -257,6 +257,7 @@ export default function ResourceDetails() {
|
||||||
>
|
>
|
||||||
<MultiLineInput
|
<MultiLineInput
|
||||||
name="uris"
|
name="uris"
|
||||||
|
type="url"
|
||||||
aria-label={t("uris")}
|
aria-label={t("uris")}
|
||||||
addButtonLabel="clients:addUri"
|
addButtonLabel="clients:addUri"
|
||||||
/>
|
/>
|
||||||
|
@ -272,7 +273,12 @@ export default function ResourceDetails() {
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput id="iconUri" name="icon_uri" ref={register} />
|
<KeycloakTextInput
|
||||||
|
id="iconUri"
|
||||||
|
name="icon_uri"
|
||||||
|
type="url"
|
||||||
|
ref={register}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
hasNoPaddingTop
|
hasNoPaddingTop
|
||||||
|
|
|
@ -182,6 +182,7 @@ export const Keys = ({ clientId, save, hasConfigureAccess }: KeysProps) => {
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="jwksUrl"
|
id="jwksUrl"
|
||||||
|
type="url"
|
||||||
{...register(
|
{...register(
|
||||||
convertAttributeNameToForm("attributes.jwks.url")
|
convertAttributeNameToForm("attributes.jwks.url")
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -110,7 +110,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
|
||||||
helperTextInvalid={t("common:required")}
|
helperTextInvalid={t("common:required")}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
type="text"
|
type="url"
|
||||||
data-testid="sso-service-url"
|
data-testid="sso-service-url"
|
||||||
id="kc-sso-service-url"
|
id="kc-sso-service-url"
|
||||||
name="config.singleSignOnServiceUrl"
|
name="config.singleSignOnServiceUrl"
|
||||||
|
@ -141,7 +141,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
|
||||||
helperTextInvalid={t("common:required")}
|
helperTextInvalid={t("common:required")}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
type="text"
|
type="url"
|
||||||
id="single-logout-service-url"
|
id="single-logout-service-url"
|
||||||
name="config.singleLogoutServiceUrl"
|
name="config.singleLogoutServiceUrl"
|
||||||
ref={register}
|
ref={register}
|
||||||
|
|
|
@ -59,7 +59,7 @@ const Fields = ({ readOnly }: DiscoverySettingsProps) => {
|
||||||
helperTextInvalid={t("common:required")}
|
helperTextInvalid={t("common:required")}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
type="text"
|
type="url"
|
||||||
data-testid="authorizationUrl"
|
data-testid="authorizationUrl"
|
||||||
id="kc-authorization-url"
|
id="kc-authorization-url"
|
||||||
name="config.authorizationUrl"
|
name="config.authorizationUrl"
|
||||||
|
@ -85,7 +85,7 @@ const Fields = ({ readOnly }: DiscoverySettingsProps) => {
|
||||||
helperTextInvalid={t("common:required")}
|
helperTextInvalid={t("common:required")}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
type="text"
|
type="url"
|
||||||
id="tokenUrl"
|
id="tokenUrl"
|
||||||
data-testid="tokenUrl"
|
data-testid="tokenUrl"
|
||||||
name="config.tokenUrl"
|
name="config.tokenUrl"
|
||||||
|
|
|
@ -129,7 +129,7 @@ export const DiscoveryEndpointField = ({
|
||||||
isRequired
|
isRequired
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
type="text"
|
type="url"
|
||||||
name="discoveryEndpoint"
|
name="discoveryEndpoint"
|
||||||
data-testid="discoveryEndpoint"
|
data-testid="discoveryEndpoint"
|
||||||
id="kc-discovery-endpoint"
|
id="kc-discovery-endpoint"
|
||||||
|
|
|
@ -72,6 +72,7 @@ const GithubFields = () => {
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="baseUrl"
|
id="baseUrl"
|
||||||
|
type="url"
|
||||||
name="config.baseUrl"
|
name="config.baseUrl"
|
||||||
ref={register()}
|
ref={register()}
|
||||||
/>
|
/>
|
||||||
|
@ -86,7 +87,12 @@ const GithubFields = () => {
|
||||||
}
|
}
|
||||||
fieldId="apiUrl"
|
fieldId="apiUrl"
|
||||||
>
|
>
|
||||||
<KeycloakTextInput id="apiUrl" name="config.apiUrl" ref={register()} />
|
<KeycloakTextInput
|
||||||
|
id="apiUrl"
|
||||||
|
type="url"
|
||||||
|
name="config.apiUrl"
|
||||||
|
ref={register()}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -197,6 +203,7 @@ const OpenshiftFields = () => {
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
id="baseUrl"
|
id="baseUrl"
|
||||||
|
type="url"
|
||||||
name="config.baseUrl"
|
name="config.baseUrl"
|
||||||
ref={register({ required: true })}
|
ref={register({ required: true })}
|
||||||
isRequired
|
isRequired
|
||||||
|
|
|
@ -115,7 +115,7 @@ export const RealmSettingsGeneralTab = ({
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
type="text"
|
type="url"
|
||||||
id="kc-frontend-url"
|
id="kc-frontend-url"
|
||||||
name={convertAttributeNameToForm("attributes.frontendUrl")}
|
name={convertAttributeNameToForm("attributes.frontendUrl")}
|
||||||
ref={register}
|
ref={register}
|
||||||
|
|
|
@ -119,7 +119,7 @@ export const LdapSettingsConnection = ({
|
||||||
>
|
>
|
||||||
<KeycloakTextInput
|
<KeycloakTextInput
|
||||||
isRequired
|
isRequired
|
||||||
type="text"
|
type="url"
|
||||||
id="kc-console-connection-url"
|
id="kc-console-connection-url"
|
||||||
data-testid="ldap-connection-url"
|
data-testid="ldap-connection-url"
|
||||||
name="config.connectionUrl[0]"
|
name="config.connectionUrl[0]"
|
||||||
|
|
Loading…
Reference in a new issue