Client:OAuth: enable public client by default and remove toggle button
This commit is contained in:
parent
e2205d9387
commit
2ffa095303
@ -6,8 +6,8 @@ import { HelpButton } from "@docspace/shared/components/help-button";
|
||||
import { FieldContainer } from "@docspace/shared/components/field-container";
|
||||
import { Checkbox } from "@docspace/shared/components/checkbox";
|
||||
import { IClientReqDTO } from "@docspace/shared/utils/oauth/types";
|
||||
import { ToggleButton } from "@docspace/shared/components/toggle-button";
|
||||
import { Text } from "@docspace/shared/components/text";
|
||||
// import { ToggleButton } from "@docspace/shared/components/toggle-button";
|
||||
// import { Text } from "@docspace/shared/components/text";
|
||||
|
||||
import { StyledBlock, StyledInputBlock } from "../ClientForm.styled";
|
||||
|
||||
@ -24,7 +24,7 @@ interface BasicBlockProps {
|
||||
logoValue: string;
|
||||
descriptionValue: string;
|
||||
allowPkce: boolean;
|
||||
isPublic: boolean;
|
||||
// isPublic: boolean;
|
||||
|
||||
changeValue: (
|
||||
name: keyof IClientReqDTO,
|
||||
@ -80,7 +80,7 @@ const BasicBlock = ({
|
||||
logoValue,
|
||||
descriptionValue,
|
||||
allowPkce,
|
||||
isPublic,
|
||||
// isPublic,
|
||||
changeValue,
|
||||
|
||||
isEdit,
|
||||
@ -148,7 +148,7 @@ const BasicBlock = ({
|
||||
<Trans t={t} i18nKey="AllowPKCEHelpButton" ns="OAuth" />
|
||||
);
|
||||
|
||||
const publicClientHelpButtonText = "Help text";
|
||||
// const publicClientHelpButtonText = "Help text";
|
||||
|
||||
const isNameRequiredError = requiredErrorFields.includes("name");
|
||||
const isWebsiteRequiredError = requiredErrorFields.includes("website_url");
|
||||
@ -230,7 +230,7 @@ const BasicBlock = ({
|
||||
<HelpButton tooltipContent={pkceHelpButtonText} />
|
||||
</div>
|
||||
</InputGroup>
|
||||
<InputGroup
|
||||
{/* <InputGroup
|
||||
label="Client type"
|
||||
name="public_client"
|
||||
placeholder={t("EnterURL")}
|
||||
@ -248,7 +248,7 @@ const BasicBlock = ({
|
||||
<Text>Public client</Text>
|
||||
<HelpButton tooltipContent={publicClientHelpButtonText} />
|
||||
</div>
|
||||
</InputGroup>
|
||||
</InputGroup> */}
|
||||
</StyledInputBlock>
|
||||
</StyledBlock>
|
||||
);
|
||||
|
@ -69,7 +69,7 @@ const ClientForm = ({
|
||||
terms_url: "",
|
||||
policy_url: "",
|
||||
|
||||
is_public: false,
|
||||
is_public: true,
|
||||
allow_pkce: false,
|
||||
|
||||
scopes: [],
|
||||
@ -380,7 +380,7 @@ const ClientForm = ({
|
||||
descriptionValue={form.description}
|
||||
logoValue={form.logo}
|
||||
allowPkce={form.allow_pkce}
|
||||
isPublic={form.is_public}
|
||||
// isPublic={form.is_public}
|
||||
changeValue={onChangeForm}
|
||||
isEdit={isEdit}
|
||||
errorFields={errorFields}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"date": "2024628_131043",
|
||||
"date": "2024628_173723",
|
||||
"checksums": {
|
||||
"api.js": "0efbae3383bf6c6b6f26d573eee164d2",
|
||||
"api.poly.js": "2a2ac2c0e4a7007b61d2d1ff7b00a22e",
|
||||
|
Loading…
Reference in New Issue
Block a user