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",
"clientAuthentications": {
"clientAuth_post": "Client secret sent as post",
"clientAuth_basic": "Client secret sent as basic auth",
"clientAuth_secret_jwt": "Client secret as jwt",
"clientAuth_privatekey_jwt": "JWT signed with private key"
"client_secret_post": "Client secret sent as post",
"client_secret_basic": "Client secret sent as basic auth",
"client_secret_jwt": "Client secret as jwt",
"private_key_jwt": "JWT signed with private key"
},
"acceptsPromptNone": "Accepts prompt=none forward from client",
"validateSignature": "Validate Signatures",

View file

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