Skip to content

Commit b9a2845

Browse files
committed
docs(mfa): update stale MFA statements
Refresh Account API, MFA policy labels, Console user MFA management, passkey naming, send rate-limit errors, backup code guidance, and security overview to reflect released behavior (LOG-14772).
1 parent ada6573 commit b9a2845

9 files changed

Lines changed: 37 additions & 30 deletions

File tree

‎docs/concepts/core-service/README.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ To better understand the user flows and implementation details:
100100
Account API is a comprehensive set of APIs that gives the end users direct API access without needing to go through the Management API, here is the highlights:
101101

102102
- Direct access: The Account API empowers end users to directly access and manage their own account profile without requiring the relay of Management API.
103-
- User profile and identities management: Users can fully manage their profiles and security settings, including the ability to update identity information like email, phone, and password, as well as manage social connections. MFA and SSO support are coming soon.
103+
- User profile and identities management: Users can manage their profiles and security settings, including email, phone, password, social connections, and MFA factors, as well as retrieve Secret Vault tokens for linked social and enterprise SSO connections.
104104
- Global access control: Admin has full, global control over access settings, can customize each fields.
105105
- Seamless authorization: Authorizing is easier than ever! Simply use `client.getAccessToken()` to obtain an opaque access token for OP (Logto), and attach it to the Authorization header as `Bearer <access_token>`.
106106

‎docs/end-user-flows/account-settings/by-account-api.mdx‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar_position: 1
1010
The Logto Account API is a comprehensive set of APIs that gives end users direct API access without needing to go through the Management API. Here are the highlights:
1111

1212
- Direct access: The Account API empowers end users to directly access and manage their own account profiles without requiring the relay of Management API.
13-
- User profile and identities management: Users can fully manage their profiles and security settings, including the ability to update identity information like email, phone, and password, as well as manage social connections. MFA and SSO support are coming soon.
13+
- User profile and identities management: Users can manage their profiles and security settings, including email, phone, password, social connections, and MFA factors, as well as retrieve enterprise SSO federated access tokens from Secret Vault.
1414
- Global access control: Admins have full, global control over access settings and can customize each field.
1515
- Seamless authorization: Authorization is easier than ever! Simply use `client.getAccessToken()` to obtain an opaque access token for OP (Logto), and attach it to the Authorization header as `Bearer <access_token>`.
1616

@@ -30,7 +30,7 @@ To learn more about the available APIs, please visit [Logto Account API Referenc
3030

3131
:::note
3232

33-
SSO account viewing and account deletion features are currently available through the Logto Management APIs. See [Account settings by Management API](/end-user-flows/account-settings/by-management-api) for implementation details.
33+
SSO account viewing and account deletion features are currently available through the Logto Management APIs (linking or unlinking enterprise SSO identities is not available in the Account API; only retrieving Secret Vault tokens for linked SSO identities is supported). See [Account settings by Management API](/end-user-flows/account-settings/by-management-api) for implementation details.
3434

3535
:::
3636

@@ -280,7 +280,7 @@ Remember to [enable MFA and WebAuthn](/end-user-flows/mfa) first.
280280
:::
281281

282282
:::note
283-
To use this method, you need to enable the `mfa` field in the [account center settings](#how-to-enable-account-api).
283+
WebAuthn passkey write endpoints (`POST /api/my-account/mfa-verifications` with `type: "WebAuthn"`, `PATCH /api/my-account/mfa-verifications/{verificationId}/name`, and `DELETE /api/my-account/mfa-verifications/{verificationId}` for WebAuthn) are controlled by the `passkey` field in [account center settings](#how-to-enable-account-api), falling back to `mfa` when `passkey` is unset. Reading `GET /api/my-account/mfa-verifications` requires `mfa` to be set to `ReadOnly` or `Edit`.
284284
:::
285285

286286
**Step 1: Add your front-end app origin to the related origins**
@@ -571,7 +571,7 @@ curl -X POST https://[tenant-id].logto.app/api/my-account/mfa-verifications \
571571
:::note
572572

573573
- A user can only have one set of backup codes at a time. If all codes have been used, the user needs to generate and bind new codes.
574-
- Backup codes cannot be the only MFA factor. The user must have at least one other MFA factor (such as WebAuthn or TOTP) enabled.
574+
- Backup codes cannot be the only MFA factor. The user must have an authenticator app (`Totp`) or passkey (`WebAuthn`) factor configured; email or SMS verification codes alone do not satisfy this requirement.
575575
- Each backup code can only be used once.
576576

577577
:::
@@ -626,10 +626,16 @@ The response body would be like:
626626

627627
```json
628628
{
629-
"skipMfaOnSignIn": false
629+
"skipMfaOnSignIn": false,
630+
"enabled": true,
631+
"required": false
630632
}
631633
```
632634

635+
- `skipMfaOnSignIn`: whether the user has chosen to skip MFA verification prompts on sign-in.
636+
- `enabled` (optional): whether MFA verification is enabled for the user (`undefined` for legacy accounts created before this field was introduced, which Logto treats as enabled when usable factors exist).
637+
- `required` (read-only): whether MFA is required by the tenant policy (including **Mandatory** and **Adaptive MFA** non-skippable policies), a per-user requirement, or an organization, making `skipMfaOnSignIn` and `enabled: false` ineffective.
638+
633639
**Update MFA settings**
634640

635641
To enable or disable 2-step verification, use the [`PATCH /api/my-account/mfa-settings`](https://openapi.logto.io/operation/operation-updatemfasettings) endpoint.
@@ -641,10 +647,11 @@ curl -X PATCH https://[tenant-id].logto.app/api/my-account/mfa-settings \
641647
--data-raw '{"skipMfaOnSignIn":true}'
642648
```
643649

644-
- `skipMfaOnSignIn`: set to `true` to disable 2-step verification for the user, or `false` to enable it.
650+
- `skipMfaOnSignIn`: set to `true` to disable 2-step verification prompt on sign-in for the user, or `false` to enable it.
651+
- `enabled` (optional): set to `true` or `false` to update whether MFA verification is enabled for the user. The response includes the updated `skipMfaOnSignIn`, `enabled`, and read-only `required` fields.
645652

646653
:::note
647-
This setting only takes effect when the MFA policy is set to **Optional** and MFA is not required for the user or their organizations (via `organizationRequiredMfaPolicy`). If MFA is **Mandatory**, or required for the user or organization, `skipMfaOnSignIn` is ignored and MFA is enforced. Under **Adaptive MFA**, `skipMfaOnSignIn` is also ignored, and MFA verification is prompted only when a risk rule triggers.
654+
`skipMfaOnSignIn` and `enabled: false` only take effect when the MFA policy is set to **Optional** and MFA is not required for the user or their organizations (via `organizationRequiredMfaPolicy`). If MFA is **Mandatory**, or required for the user or organization, both `skipMfaOnSignIn` and `enabled: false` are ignored and MFA is enforced (`required` is `true`). Under **Adaptive MFA**, `required` is also `true` and both settings are ignored, though MFA verification is prompted only when a risk rule triggers.
648655
:::
649656

650657
### Manage user sessions \{#manage-user-sessions}

‎docs/end-user-flows/mfa/authenticator-app-otp.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Popular examples of software tokens include Google Authenticator, Microsoft Auth
1414

1515
1. Navigate to <CloudLink to="/mfa">Console > Multi-factor authentication</CloudLink>
1616
2. Enable the "Authenticator App OTP" factor. Recommend to use Authenticator App OTP in combination with other MFA factors (passkeys, SMS, backup codes) to reduce single-factor dependency.
17-
3. Configure your preferred MFA policy (required vs. optional)
17+
3. Configure your preferred MFA policy (optional, adaptive, or mandatory)
1818
4. Save your configuration changes
1919

2020
## Configure authenticator app OTP management \{#configure-authenticator-app-otp-management}

‎docs/end-user-flows/mfa/backup-codes.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ Backup codes, also known as Recovery code, is a one-time use code for MFA, actin
1010

1111
Losing them can lead to account recovery challenges. Therefore, it's recommended to set up an additional primary factor before enabling Backup Codes, giving it priority.
1212

13-
Logto automatically generates 10 Backup Codes for users once they configure an additional factor. Each code is single-use. Users are advised to regenerate a new set of codes in the User Account Settings (accessible through the [Management API](/integrate-logto/interact-with-management-api/)) before using up all the existing codes.
13+
Logto automatically generates 10 Backup Codes for users once they configure an additional factor. Each code is single-use. Users can regenerate a new set of codes through the [prebuilt Account Center UI](/end-user-flows/account-settings/by-account-center-ui) (`/account/backup-codes/regenerate`), a custom self-service interface built with the [Account API](/end-user-flows/account-settings/by-account-api#manage-backup-codes), or admin tooling using the [Management API](/end-user-flows/account-settings/by-management-api#user-mfa-settings-management) before using up all the existing codes.
1414

1515
## Configure backup codes for MFA \{#configure-backup-codes-for-mfa}
1616

1717
1. Navigate to <CloudLink to="/mfa">Console > Multi-factor authentication</CloudLink>
1818
2. Enable the "Backup Codes" factor. Backup codes cannot be used as the sole MFA factor. It is required to use backup codes in combination with other primary MFA factors (passkeys, authenticator app, SMS, email).
19-
3. Configure your preferred MFA policy (required vs. optional)
19+
3. Configure your preferred MFA policy (optional, adaptive, or mandatory)
2020
4. Save your configuration changes
2121

2222
## Configure backup codes management \{#configure-backup-codes-management}
2323

24-
You can use the Account API to build custom account management interfaces where users can view, regenerate, and remove their backup codes. This enables users to manage their recovery options directly from your application's account settings.
24+
Users can view and regenerate their backup codes using the [prebuilt Account Center UI](/end-user-flows/account-settings/by-account-center-ui) (`/account/backup-codes/manage` and `/account/backup-codes/regenerate`). You can also use the Account API to build custom account management interfaces where users can view, regenerate, and remove their backup codes. This enables users to manage their recovery options directly from your application's account settings.
2525

2626
For detailed implementation steps and API endpoints, see [Account settings by Account API](/end-user-flows/account-settings/by-account-api#manage-backup-codes).
2727

‎docs/end-user-flows/mfa/configure-mfa.mdx‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ Follow these steps to enable MFAs in users' Logto sign-in flow:
2222
2. Backup factors:
2323
- [Backup codes](/end-user-flows/mfa/backup-codes): This serves as a backup option when users can't verify any of the primary factors mentioned above. Enabling this option reduces friction for users' access successfully.
2424
3. Choose the **Require MFA** policy from the dropdown. This policy controls when users must complete MFA during sign-in:
25-
- **Optional MFA**: Let users decide whether to enable MFA for their own account security. Users can skip MFA setup during sign-in and set it up later through your self-service account settings page. [Learn more](/end-user-flows/account-settings/) about implementing a user account settings page.
26-
- **Adaptive MFA**: Apply MFA only when a sign-in appears unusual, so low-risk sign-ins can stay smoother while suspicious sign-ins get extra verification. To make that decision, Logto evaluates high-level contextual signals such as the user's inactivity level, whether the current sign-in context is broadly consistent with recent travel-related sign-in patterns, the state of the network connection, and other session or environmental indicators. This mode depends on your existing MFA setup (at least one MFA factor must be enabled), applies to end-user sign-in flows, and does not rely on device fingerprinting or precise location tracking.
27-
- **Mandatory MFA**: Require all users to complete MFA on every sign-in. Users who have not set up MFA must complete setup before they can continue.
28-
- When **Optional MFA** is selected, configure the MFA setup prompt policy:
25+
- **Optional MFA** (_Optional MFA: Let users choose to enable MFA for their own account security_): Let users decide whether to enable MFA for their own account security. Users can skip MFA setup during sign-in and set it up later through your self-service account settings page. [Learn more](/end-user-flows/account-settings/) about implementing a user account settings page.
26+
- **Adaptive MFA** (_Adaptive MFA: Only ask for MFA when a sign-in seems risky (e.g., new country / long inactivity)_): Apply MFA only when a sign-in appears unusual, so low-risk sign-ins can stay smoother while suspicious sign-ins get extra verification. To make that decision, Logto evaluates high-level contextual signals such as the user's inactivity level, whether the current sign-in context is broadly consistent with recent travel-related sign-in patterns, the state of the network connection, and other session or environmental indicators. This mode depends on your existing MFA setup (at least one MFA factor must be enabled), applies to end-user sign-in flows, and does not rely on device fingerprinting or precise location tracking.
27+
- **Mandatory MFA** (_Mandatory MFA: Requires all users to complete MFA every time they sign in_): Require all users to complete MFA on every sign-in. Users who have not set up MFA must complete setup before they can continue.
28+
- When **Optional MFA** is selected, configure the **MFA set-up prompt** policy:
2929
- **Do not ask users to set up MFA**: Users will not be prompted to set up MFA during sign-in or registration.
30-
- **Ask users to set up MFA during registration**: New users will be prompted to set up MFA during registration, and existing users will see the prompt at their next sign-in. Users can skip this step and it won't appear again.
31-
- **Ask users to set up MFA on their sign-in after registration**: New users will be prompted to set up MFA at their next sign-in after registration, and existing users will see the prompt at their next sign-in. Users can skip this step and it won't appear again.
32-
- When **Adaptive MFA** is selected, only the two non-skippable setup prompt policies are supported (**Do not ask users to set up MFA** is not available):
30+
- **Ask users to set up MFA during registration (skippable, one-time prompt)**: New users will be prompted to set up MFA during registration, and existing users will see the prompt at their next sign-in. Users can skip this step and it won't appear again.
31+
- **Ask users to set up MFA on their next sign-in attempt after registration (skippable, one-time prompt)**: New users will be prompted to set up MFA at their next sign-in after registration, and existing users will see the prompt at their next sign-in. Users can skip this step and it won't appear again.
32+
- When **Adaptive MFA** is selected, only the two non-skippable **MFA set-up prompt** policies are supported (**Do not ask users to set up MFA** is not available):
3333
- **Ask users to set up MFA during registration (non-skippable)**: New users must complete MFA setup during registration, and existing users without MFA must complete it at their next sign-in.
3434
- **Ask users to set up MFA on their next sign-in attempt after registration (non-skippable)**: New users must complete MFA setup at their next sign-in after registration, and existing users without MFA must complete it at their next sign-in.
3535

36-
When **Optional MFA** is selected with a setup prompt enabled (`Ask users to set up MFA during registration` or `Ask users to set up MFA on their sign-in after registration`), Logto first shows an enable-MFA confirmation page titled `Turn on 2-step verification`. Users can choose `Enable 2-step verification` to continue to MFA binding, or skip the prompt and finish the current sign-in or sign-up flow without turning on MFA. Under **Adaptive MFA** or **Mandatory MFA**, users go straight to MFA factor binding without seeing the `Turn on 2-step verification` confirmation page.
36+
When **Optional MFA** is selected with a setup prompt enabled (`Ask users to set up MFA during registration (skippable, one-time prompt)` or `Ask users to set up MFA on their next sign-in attempt after registration (skippable, one-time prompt)`), Logto first shows an enable-MFA confirmation page titled `Turn on 2-step verification`. Users can choose `Enable 2-step verification` to continue to MFA binding, or skip the prompt and finish the current sign-in or sign-up flow without turning on MFA. Under **Adaptive MFA** or **Mandatory MFA**, users go straight to MFA factor binding without seeing the `Turn on 2-step verification` confirmation page.
3737

3838
:::tip
3939
If you need to prompt a user again after they skipped MFA enrollment, reset their skip state so the setup screen appears the next time they sign in. Admins can use the Management API (`PATCH /api/users/{userId}/logto-configs`), and developers building self-service flows can call the Account API (`PATCH /api/my-account/logto-configs`). [Management API reference](https://openapi.logto.io/operation/operation-updateuserlogtoconfigs) · [Account API reference](https://openapi.logto.io/operation/operation-updatelogtoconfig)
@@ -45,7 +45,7 @@ If you need to prompt a user again after they skipped MFA enrollment, reset thei
4545

4646
For products with a multi-tenant architecture that support [Organizations](/organizations), in most cases you don't need to require MFA for all users. Instead, MFA can be enabled on a per-organization basis, allowing you to tailor the requirements based on each client's needs. To get started, refer to [Requiring MFA for organization members](/organizations/organization-management#require-mfa-for-organization-members).
4747

48-
In the **Multi-factor authentication** section, set **MFA setup prompt for users after organization enables MFA** to **Ask users to set up MFA on next sign-in (no skipping)**. Members of any organization that requires MFA will then be prompted to complete MFA setup at their next sign-in, and the prompt cannot be skipped.
48+
When **Optional MFA** is selected in the **Require MFA** dropdown, Console displays the **MFA setup prompt for users after organization enables MFA** setting. Set it to **Ask users to set up MFA on next sign-in (non-skippable)** so members of any organization that requires MFA are prompted to complete MFA setup at their next sign-in and cannot skip it. (This setting is hidden in Console when **Adaptive MFA** or **Mandatory MFA** is selected.)
4949

5050
## MFA user flow \{#mfa-user-flow}
5151

@@ -109,7 +109,7 @@ Learn more about implementing these patterns with [Account API](/end-user-flows/
109109
In the <CloudLink to="/user"> Console > User management</CloudLink>, administrators can manage user MFA settings effectively:
110110

111111
- **View user MFA status**: Check which MFA factors are enabled for each user.
112-
- **Remove user MFA**: Delete all MFA factors for a user, requiring them to set up MFA again.
112+
- **Remove user MFA**: Remove stored MFA factors one by one. Implicit email or SMS verification code rows cannot be removed directly from this table, and when passkey sign-in is enabled, passkey (WebAuthn) rows have no remove button here and are managed under the **Passkeys** section on the same user details page.
113113

114114
### FAQs \{#faqs}
115115

‎docs/end-user-flows/mfa/email-mfa.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Email verification is one of the most universally accessible MFA methods. It lev
3030

3131
1. Navigate to <CloudLink to="/mfa">Console > Multi-factor authentication</CloudLink>
3232
2. Enable the "Email verification code" factor. Recommend to use email MFA in combination with other MFA factors (TOTP, passkeys, SMS, backup codes) to reduce single-factor dependency.
33-
3. Configure your preferred MFA policy (required vs. optional)
33+
3. Configure your preferred MFA policy (optional, adaptive, or mandatory)
3434
4. Save your configuration changes
3535

3636
:::note Important usage considerations
@@ -143,5 +143,5 @@ If multiple MFA factors are available, Logto opens the highest-priority factor d
143143
- Handling: Prompt user to request new verification code
144144

145145
4. **Sending rate limit exceeded**
146-
- Error code: `connector.rate_limit_exceeded`
146+
- Error codes: `request.message_rate_limited` (Logto per-recipient send rate limit) or `connector.rate_limit_exceeded` (email connector rate limit)
147147
- Handling: Show wait time, limit resending

0 commit comments

Comments
 (0)