Skip to content
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

docs: identifier first authentication #1742

Merged
merged 6 commits into from
Sep 24, 2024
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
4 changes: 3 additions & 1 deletion docs/identities/sign-in/actions.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
id: actions
title: Customize login and registration flows with webhooks and actions
sidebar_label: Customize login and registration
sidebar_label: Login and registration actions
---

# Login and registration webhooks and actions

```mdx-code-block
import Tabs from "@theme/Tabs"
import TabItem from "@theme/TabItem"
Expand Down
36 changes: 36 additions & 0 deletions docs/identities/sign-in/identifier-first-authentication.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
id: identifier-first-authentication
title: Identifier first authentication
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.

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

## Ory Network

To enable it:

1. Log in to the [Ory Console](https://console.ory.sh).
2. Select your project.
3. Navigate to [Project Settings > Advanced](https://console.ory.sh/projects/current/settings/advanced).
4. Enable "New Account Experience".
5. Click "Save Changes".
6. Test the flow in your application by navigating to the login page.

To disable this feature, follow the same steps and disable "New Account Experience".

## Self-hosted Ory Kratos
vinckr marked this conversation as resolved.
Show resolved Hide resolved

For Ory Enterprise License and Ory Apache 2.0 License users, set the following configuration in your `kratos.yaml` config file:

```yaml title="kratos-config.yaml"
selfservice:
flows:
login:
style: identifier_first
```

To disable this feature, set `style` to `unified`.
43 changes: 29 additions & 14 deletions src/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const guidesSidebar = (flat: boolean): ExtendSidebar => {
...items,
{
type: "category",
label: "Authentication and login",
label: "Login and registration",
collapsed: false,
collapsible: false,
link: {
Expand Down Expand Up @@ -219,7 +219,7 @@ const guidesSidebar = (flat: boolean): ExtendSidebar => {
},
{
type: "category",
label: "Multi-factor Authentication",
label: "Multi-factor authentication",
items: [
"kratos/mfa/lookup-secrets",
"kratos/mfa/totp",
Expand All @@ -228,13 +228,22 @@ const guidesSidebar = (flat: boolean): ExtendSidebar => {
"kratos/mfa/step-up-authentication",
],
},
"identities/sign-in/two-step-registration",
"identities/sign-in/login-hint",
{
type: "category",
label: "Customize user experience",
items: [
"identities/sign-in/two-step-registration",
"identities/sign-in/identifier-first-authentication",
"identities/sign-in/login-hint",
"getting-started/custom-ui",
"identities/sign-in/actions",
],
},
],
},
{
type: "category",
label: "Emails & SMS",
label: "Emails and SMS",
collapsed: false,
collapsible: false,
link: {
Expand All @@ -260,19 +269,26 @@ const guidesSidebar = (flat: boolean): ExtendSidebar => {
items: flat
? []
: [
"identities/sign-in/actions",
"actions/revoke-active-sessions",
"actions/session",
"actions/require-verified-address",
{
type: "category",
label: "Integrations",
label: "Identity management",
items: [
"actions/integrations/hubspot",
"actions/integrations/mailchimp",
"actions/integrations/segment",
"identities/sign-in/actions",
"actions/revoke-active-sessions",
"actions/session",
"actions/require-verified-address",
{
type: "category",
label: "Integrations",
items: [
"actions/integrations/hubspot",
"actions/integrations/mailchimp",
"actions/integrations/segment",
],
},
],
},
"hydra/guides/claims-at-refresh",
],
},
{
Expand Down Expand Up @@ -373,7 +389,6 @@ const guidesSidebar = (flat: boolean): ExtendSidebar => {
"hydra/guides/audiences",
"hydra/guides/jwt",
"hydra/guides/client-token-expiration",
"hydra/guides/claims-at-refresh",
"oauth2-oidc/claims-scope",
],
},
Expand Down
Loading