Skip to content

docs: account enumeration mitigation #2126

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

Merged
merged 3 commits into from
May 14, 2025
Merged
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
26 changes: 26 additions & 0 deletions docs/identities/sign-in/identifier-first-authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ sidebar_label: Identifier first authentication
Identifier first authentication first requests the user's identifier such as an email or username before prompting for a password
or other authentication methods.

:::note

Identifier first authentication is required when using B2B Organization login.

:::

This guide explains how to enable and use identifier first authentication in Ory Network and self-hosted Ory Kratos.

## Ory Network
Expand Down Expand Up @@ -35,3 +41,23 @@ selfservice:
```

To disable this feature, set `style` to `unified`.

## Account enumeration mitigation

Account enumeration mitigation prevents malicious actors from being able to identify if a user exists or not.

By default, Ory does not prevent account enumeration in the identifier first authentication flow. This improves user experience as
the user quickly knows if they have an account with the chosen identifier (email / username) or not. To enable account
enumeration, use the Ory CLI patch command

```shell
ory patch identity-config --project <project-id> --add '/security/account_enumeration/mitigate=true'
```

or if you use a config file, add the following to your `kratos.yaml` config file:

```yaml title="kratos-config.yaml"
security:
account_enumeration:
mitigate: true
```
3 changes: 3 additions & 0 deletions docs/kratos/organizations/organizations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ graph LR
/>
```

Organizations require identifier-first authentication and two-step registration when using Account Experience 2.x or Ory Elements
1.x.

## Manage organizations

```mdx-code-block
Expand Down
Loading