Skip to content

Commit 96deea3

Browse files
authored
feat: document two-step registration (#1694)
* feat: document two-step registration * fix: add passkey console screenshot
1 parent 0db1b91 commit 96deea3

File tree

5 files changed

+44
-5
lines changed

5 files changed

+44
-5
lines changed
222 KB
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
id: two-step-registration
3+
title: Two-step registration
4+
sidebar_label: Two-step registration
5+
slug: two-step-registration
6+
---
7+
8+
With a one-step registration, when you enable multiple authentication strategies (for example password, code via email, and
9+
passkey), the identity traits will be repeated for each authentication strategy.
10+
11+
Compare this to a two-step registration: Now, the user is prompted for the identity traits in the first step, and asked to choose
12+
a credential method for authentication next. This results in a more stream-lined user experience.
13+
14+
:::info
15+
16+
Identity traits are data associated with an identity that can be modified by the user. The traits are configured through the
17+
identity schema.
18+
19+
[Learn more about identity traits](../../kratos/manage-identities/managing-users-identities-metadata#traits)
20+
21+
:::
22+
23+
![Registration with two-step registration vs one-step registration](./_static/two-step-registration.png)
24+
25+
To disable the legacy one-step registration, go to https://console.ory.sh/projects/current/authentication and switch off "Enable
26+
legacy one-step registration" or use the Ory CLI:
27+
28+
```bash
29+
ory list projects # to get the project id
30+
31+
ory patch project ${project_id} \
32+
--replace '/services/identity/config/selfservice/flows/registration/enable_legacy_one_step=false'
33+
```
169 KB
Loading

docs/kratos/passwordless/05_passkeys.mdx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,19 @@ login. Here is a comparison of the two approaches:
4646

4747
### Configuration
4848

49-
:::info
49+
By default, the passkey strategy is disabled. You can enable it in the Ory Console by going to
50+
[https://console.ory.sh/projects/current/passwordless](https://console.ory.sh/projects/current/passwordless) and toggling the
51+
switch for "Enable Passkey authentication".
5052

51-
This feature is in preview. Please report any issues to [email protected] or contact us in the
52-
[Ory Community](https://slack.ory.sh/).
53+
```mdx-code-block
54+
<BrowserWindow url="https://console.ory.sh/projects/current/passwordless">
5355
54-
:::
56+
![Passkey in Console](../_static/passkeys/console.png)
57+
58+
</BrowserWindow>
59+
```
5560

56-
By default, the passkey strategy is disabled. To start using the passkey strategy, apply this configuration:
61+
Alternatively, use the Ory CLI to enable the passkey strategy:
5762

5863
```mdx-code-block
5964
import CodeBlock from '@theme/CodeBlock'

src/sidebar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ module.exports = {
9797
"identities/sign-in/check-session",
9898
"identities/sign-in/actions",
9999
"identities/sign-in/login-hint",
100+
"identities/sign-in/two-step-registration",
100101
],
101102
},
102103
{

0 commit comments

Comments
 (0)