mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
## Problem statement - `<Tabs>` were not rendered in docs - Missing steps in README for local dev ## How it was solved - Enhance the README to better describe local development setup and clean up formatting. - Standardize the use of tabs across various components for consistency. ## Additional info To not cause merge conflicts with https://github.com/zitadel/zitadel/pull/11729 changes in `/self-hosting/manage/configure/configure.mdx` were skipped
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
import PKCE from "./authmethods/_pkce.mdx";
|
|
import Basic from "./authmethods/_basic.mdx";
|
|
import Implicit from "./authmethods/_implicit.mdx";
|
|
import PKCENative from "./authmethods/_pkcenative.mdx";
|
|
import JWTPrivateKey from "./authmethods/_jwtpk.mdx";
|
|
|
|
export default function AuthMethods(props) {
|
|
const { Tab, Tabs } = props.components || {};
|
|
return props.selected == "web" ? (
|
|
<div>
|
|
<Tabs
|
|
groupId="auth-type"
|
|
defaultIndex={0}
|
|
items={["PKCE","Basic Auth","JWT with Private Key"]}
|
|
>
|
|
<Tab value="PKCE">
|
|
<PKCE components={props.components} />
|
|
</Tab>
|
|
<Tab value="Basic Auth">
|
|
<Basic components={props.components} />
|
|
</Tab>
|
|
<Tab value="JWT with Private Key">
|
|
<JWTPrivateKey components={props.components} />
|
|
</Tab>
|
|
</Tabs>
|
|
</div>
|
|
) : props.selected == "native" ? (
|
|
<Tabs
|
|
groupId="auth-type"
|
|
defaultIndex={0}
|
|
items={["PKCE"]}
|
|
>
|
|
<Tab value="PKCE">
|
|
<PKCE components={props.components} Native />
|
|
</Tab>
|
|
</Tabs>
|
|
) : props.selected == "spa" ? (
|
|
<Tabs
|
|
groupId="auth-type"
|
|
defaultIndex={0}
|
|
items={["PKCE","Implicit"]}
|
|
>
|
|
<Tab value="PKCE">
|
|
<PKCE components={props.components} />
|
|
</Tab>
|
|
<Tab value="Implicit">
|
|
<Implicit components={props.components} />
|
|
</Tab>
|
|
</Tabs>
|
|
) : null;
|
|
}
|