fixed help texts for identity providers (#23367)

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2023-09-20 08:28:28 +01:00 committed by GitHub
parent 25d6a1008d
commit 2ec3f33d5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 22 deletions

View file

@ -3000,7 +3000,7 @@
"comparisonHelp": "Specifies the comparison method used to evaluate the requested context classes or statements. The default is \"Exact\".",
"authnContextClassRefsHelp": "Ordered list of requested AuthnContext ClassRefs.",
"authnContextDeclRefsHelp": "Ordered list of requested AuthnContext DeclRefs.",
"addIdpMapperName": "Name of the mapper.",
"addIdpMapperNameHelp": "Name of the mapper.",
"syncModeOverrideHelp": "Overrides the default sync mode of the IDP for this mapper. Values are: 'legacy' to keep the behaviour before this option was introduced, 'import' to only import the user once during first login of the user with this identity provider, 'force' to always update the user during every login with this identity provider and 'inherit' to use the sync mode defined in the identity provider for this mapper.",
"advancedAttributeToRole": "If the set of attributes exists and can be matched, grant the user the specified realm or client role.",
"usernameTemplateImporter": "Format the username to import.",

View file

@ -50,10 +50,7 @@ export const AddMapperForm = ({
<FormGroup
label={t("name")}
labelIcon={
<HelpItem
helpText={t("identity-providers-help:addIdpMapperName")}
fieldLabelId="name"
/>
<HelpItem helpText={t("addIdpMapperName")} fieldLabelId="name" />
}
fieldId="kc-name"
isRequired

View file

@ -44,7 +44,7 @@ const LoginFlow = ({
label={t(label)}
labelIcon={
<HelpItem
helpText={t(`identity-providers-help:${label}`)}
helpText={t(`${label}Help`)}
fieldLabelId={`identity-providers:${label}`}
/>
}

View file

@ -26,7 +26,6 @@ type DescriptorSettingsProps = {
const Fields = ({ readOnly }: DescriptorSettingsProps) => {
const { t } = useTranslation();
const { t: th } = useTranslation();
const {
register,
@ -98,7 +97,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("ssoServiceUrl")}
labelIcon={
<HelpItem
helpText={th("ssoServiceUrl")}
helpText={t("ssoServiceUrlHelp")}
fieldLabelId="identity-providers:ssoServiceUrl"
/>
}
@ -128,7 +127,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("singleLogoutServiceUrl")}
labelIcon={
<HelpItem
helpText={th("singleLogoutServiceUrl")}
helpText={t("singleLogoutServiceUrlHelp")}
fieldLabelId="identity-providers:singleLogoutServiceUrl"
/>
}
@ -158,7 +157,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("nameIdPolicyFormat")}
labelIcon={
<HelpItem
helpText={th("nameIdPolicyFormat")}
helpText={t("nameIdPolicyFormatHelp")}
fieldLabelId="identity-providers:nameIdPolicyFormat"
/>
}
@ -237,7 +236,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("principalType")}
labelIcon={
<HelpItem
helpText={th("principalType")}
helpText={t("principalTypeHelp")}
fieldLabelId="identity-providers:principalType"
/>
}
@ -292,7 +291,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("principalAttribute")}
labelIcon={
<HelpItem
helpText={th("principalAttribute")}
helpText={t("principalAttributeHelp")}
fieldLabelId="identity-providers:principalAttribute"
/>
}
@ -342,7 +341,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("signatureAlgorithm")}
labelIcon={
<HelpItem
helpText={th("signatureAlgorithm")}
helpText={t("signatureAlgorithmHelp")}
fieldLabelId="identity-providers:signatureAlgorithm"
/>
}
@ -381,7 +380,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("encryptionAlgorithm")}
labelIcon={
<HelpItem
helpText={th("encryptionAlgorithm")}
helpText={t("encryptionAlgorithmHelp")}
fieldLabelId="identity-provider:encryptionAlgorithm"
/>
}
@ -416,7 +415,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("samlSignatureKeyName")}
labelIcon={
<HelpItem
helpText={th("samlSignatureKeyName")}
helpText={t("samlSignatureKeyNameHelp")}
fieldLabelId="identity-providers:samlSignatureKeyName"
/>
}
@ -500,7 +499,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("allowedClockSkew")}
labelIcon={
<HelpItem
helpText={th("allowedClockSkew")}
helpText={t("allowedClockSkewHelp")}
fieldLabelId="identity-providers:allowedClockSkew"
/>
}
@ -539,7 +538,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("attributeConsumingServiceIndex")}
labelIcon={
<HelpItem
helpText={th("attributeConsumingServiceIndex")}
helpText={t("attributeConsumingServiceIndexHelp")}
fieldLabelId="identity-providers:attributeConsumingServiceIndex"
/>
}
@ -578,7 +577,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
label={t("attributeConsumingServiceName")}
labelIcon={
<HelpItem
helpText={th("attributeConsumingServiceName")}
helpText={t("attributeConsumingServiceNameHelp")}
fieldLabelId="identity-providers:attributeConsumingServiceName"
/>
}

View file

@ -88,7 +88,7 @@ export const ExtendedNonDiscoverySettings = () => {
label={t("allowedClockSkew")}
labelIcon={
<HelpItem
helpText={"identity-providers-help:allowedClockSkew"}
helpText={t("allowedClockSkewHelp")}
fieldLabelId="identity-providers:allowedClockSkew"
/>
}

View file

@ -30,7 +30,7 @@ export const OIDCGeneralSettings = () => {
label={t("alias")}
labelIcon={
<HelpItem
helpText={t("identity-providers-help:alias")}
helpText={t("aliasHelp")}
fieldLabelId="identity-providers:alias"
/>
}

View file

@ -39,7 +39,7 @@ export const SamlGeneralSettings = ({
label={t("alias")}
labelIcon={
<HelpItem
helpText={t("identity-providers-help:alias")}
helpText={t("aliasHelp")}
fieldLabelId="identity-providers:alias"
/>
}
@ -74,7 +74,7 @@ export const SamlGeneralSettings = ({
fieldId="endpoints"
labelIcon={
<HelpItem
helpText={t("identity-providers-help:alias")}
helpText={t("aliasHelp")}
fieldLabelId="identity-providers:alias"
/>
}