added translation for OIDC choices for Client authentication (#3088)

* added translation for OIDC choices for Client authentication

* requested changes

* requested changes
This commit is contained in:
ikhomyn 2022-08-16 12:54:13 +02:00 committed by GitHub
parent 6369bee4aa
commit 7cd7d0b251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -111,10 +111,10 @@
}, },
"clientAuthentication": "Client authentication", "clientAuthentication": "Client authentication",
"clientAuthentications": { "clientAuthentications": {
"clientAuth_post": "Client secret sent as post", "client_secret_post": "Client secret sent as post",
"clientAuth_basic": "Client secret sent as basic auth", "client_secret_basic": "Client secret sent as basic auth",
"clientAuth_secret_jwt": "Client secret as jwt", "client_secret_jwt": "Client secret as jwt",
"clientAuth_privatekey_jwt": "JWT signed with private key" "private_key_jwt": "JWT signed with private key"
}, },
"acceptsPromptNone": "Accepts prompt=none forward from client", "acceptsPromptNone": "Accepts prompt=none forward from client",
"validateSignature": "Validate Signatures", "validateSignature": "Validate Signatures",

View file

@ -11,7 +11,7 @@ import {
import { ClientIdSecret } from "../component/ClientIdSecret"; import { ClientIdSecret } from "../component/ClientIdSecret";
import { HelpItem } from "../../components/help-enabler/HelpItem"; import { HelpItem } from "../../components/help-enabler/HelpItem";
const clientAuthenticationTypes = [ const clientAuthentications = [
"client_secret_post", "client_secret_post",
"client_secret_basic", "client_secret_basic",
"client_secret_jwt", "client_secret_jwt",
@ -42,12 +42,12 @@ export const OIDCAuthentication = ({ create = true }: { create?: boolean }) => {
fieldId="clientAuthentication" fieldId="clientAuthentication"
> >
<Controller <Controller
name="config.clientAuthMethod" name="config.clientAuthentications"
defaultValue={clientAuthenticationTypes[0]} defaultValue={clientAuthentications[0]}
control={control} control={control}
render={({ onChange, value }) => ( render={({ onChange, value }) => (
<Select <Select
toggleId="clientAuthMethod" toggleId="clientAuthentication"
required required
onToggle={() => setOpenClientAuth(!openClientAuth)} onToggle={() => setOpenClientAuth(!openClientAuth)}
onSelect={(_, value) => { onSelect={(_, value) => {
@ -56,10 +56,10 @@ export const OIDCAuthentication = ({ create = true }: { create?: boolean }) => {
}} }}
selections={value} selections={value}
variant={SelectVariant.single} variant={SelectVariant.single}
aria-label={t("prompt")} aria-label={t("clientAuthentication")}
isOpen={openClientAuth} isOpen={openClientAuth}
> >
{clientAuthenticationTypes.map((option) => ( {clientAuthentications.map((option) => (
<SelectOption <SelectOption
selected={option === value} selected={option === value}
key={option} key={option}