Skip to content

docs: captcha allowed domains customization #2262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions docs/kratos/concepts/security.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@ Supported CAPTCHA providers are:

- [Cloudflare Turnstile](https://developers.cloudflare.com/turnstile)

Cloudflare Turnstile widgets support a maximum of 10 allowed domains. When CAPTCHA is enabled, this list will be automatically
populated with your currently configured [custom domains](../../guides/custom-domains.mdx). If your domain list exceeds this
limit, you won't be able to enable CAPTCHA protection.

```mdx-code-block
<Tabs groupId="console-or-api">
<TabItem value="console" label="Ory Console">
```

1. Go to <ConsoleLink route="project.authentication" />.
2. Toggle **CAPTCHA protection**.
3. Click **Save**.
3. (optional) Add or remove domains from the **Allowed domains** list.

- You must define at least one valid domain.
- You can list up to 10 domains in total.

4. Navigate to your registration or login screen to test the CAPTCHA protection.
4. Click **Save**.
5. Navigate to your registration or login screen to test the CAPTCHA protection.

```mdx-code-block
</TabItem>
Expand All @@ -107,7 +107,8 @@ limit, you won't be able to enable CAPTCHA protection.

```shell
ory patch identity-config --project <project-id> --workspace <workspace-id> \
--replace '/selfservice/mehods/captcha/enabled=true'
--replace '/selfservice/mehods/captcha/enabled=true' \
--replace '/selfservice/methods/captcha/config/allowed_domains=["example.org", "foo.bar.dev"]'
```

```mdx-code-block
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConsoleLink/console-nav-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const brandingPaths: Path[] = [

export const authenticationPaths: Path[] = [
{
title: "Registration",
title: "General",
href: routes.project.authentication.route,
},
{
Expand Down
Loading