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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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.

:::
Comment on lines +10 to +14
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This note should be on the orgs docs, I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in both, no?


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
```
Loading