public client = false when clientAuthentication (#505)

fixing: #392
This commit is contained in:
Erik Jan de Wit 2021-04-06 20:14:56 +02:00 committed by GitHub
parent 8cd88b9a1d
commit dd19613557
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -191,7 +191,7 @@ export const ClientDetails = () => {
) => {
if (await form.trigger()) {
if (
client?.publicClient &&
!client?.publicClient &&
client?.clientAuthenticatorType !==
form.getValues("clientAuthenticatorType") &&
!confirmed
@ -285,7 +285,7 @@ export const ClientDetails = () => {
reset={() => setupForm(client)}
/>
</Tab>
{client.publicClient && (
{!client.publicClient && (
<Tab
id="credentials"
eventKey="credentials"

View file

@ -40,7 +40,7 @@ export const CapabilityConfig = ({
>
<Controller
name="publicClient"
defaultValue={false}
defaultValue={true}
control={control}
render={({ onChange, value }) => (
<Switch
@ -49,8 +49,8 @@ export const CapabilityConfig = ({
name="publicClient"
label={t("common:on")}
labelOff={t("common:off")}
isChecked={value}
onChange={onChange}
isChecked={!value}
onChange={(value) => onChange(!value)}
/>
)}
/>
@ -78,7 +78,7 @@ export const CapabilityConfig = ({
setValue("serviceAccountsEnabled", true);
}
}}
isDisabled={!clientAuthentication}
isDisabled={clientAuthentication}
/>
)}
/>

View file

@ -31,7 +31,7 @@ export const NewClientForm = () => {
clientId: "",
name: "",
description: "",
publicClient: false,
publicClient: true,
authorizationServicesEnabled: false,
serviceAccountsEnabled: false,
implicitFlowEnabled: false,