Files
zitadel/apps/docs/content/guides/integrate/login/oidc/_authmethods.mdx
T
SilvanandGitHub 4bc899d052 docs: Improve README for local development and standardize tab usage (#11865)
## 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
2026-03-23 14:39:07 +00:00

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;
}