true, the activity enters ACTIVITY_STATUS_AUTHENTICATORS_NEEDED status. The activity will not execute until the user satisfies the authentication challenges.
The user must call the APPROVE_ACTIVITY activity, passing in the fingerprint of the original activity:
API key
To prove API key authentication, the user stamps theAPPROVE_ACTIVITY request with an API key.
If the MFA policy specifies an id, the user must stamp with that specific API key.
Passkey
To prove passkey authentication, the user stamps theAPPROVE_ACTIVITY request with a WebAuthn authenticator.
If the MFA policy specifies an id, the user must stamp with that specific authenticator.
Session
To prove session authentication, the user stamps theAPPROVE_ACTIVITY request with a session credential. A session credential is an API key that was classified as a session after a login activity (e.g., STAMP_LOGIN, OTP_LOGIN).
If the MFA policy specifies an id for a session authentication method, the id refers to a session profile ID. The user must stamp with a session credential that was issued with that specific session profile.
Note that sessions are not transitive. For example, if a passkey was used to create a session, and an MFA policy requires AUTHENTICATION_TYPE_PASSKEY, the session will not satisfy that requirement. The user must stamp directly with the passkey.
Email OTP, SMS OTP, and OAuth
Unlike API keys and passkeys, OTP and OAuth authenticators cannot directly sign requests. Instead, they use attested stamps, where a client-side key signs the request and a token (verification token or OIDC token) attests that the key belongs to the identity. To prove Email OTP, SMS OTP, or OAuth authentication, the user stamps theAPPROVE_ACTIVITY request with an attested stamp.
Only OAuth authenticators support the id field in MFA policies. If specified, the user must prove ownership of that specific OAuth provider identity. Email and SMS OTP authenticators do not have IDs.
MFA and consensus
MFA works alongside Turnkey’s consensus system for activities that require approval from multiple users. When an activity requires both MFA and consensus:- The activity initiator must satisfy their own MFA requirements first. If the proposer has an MFA policy whose condition evaluates to
true, the activity is returned withACTIVITY_STATUS_AUTHENTICATORS_NEEDED. The proposer must satisfy their MFA requirements before the activity can proceed to consensus and other users can vote on it. - Subsequent approvers vote on the activity as normal. Once the proposer’s MFA is satisfied, other users in the quorum can approve or reject the activity.
- Approving users must also satisfy their own MFA requirements. If an approver has an MFA policy whose condition evaluates to
true, their vote will returnACTIVITY_STATUS_AUTHENTICATORS_NEEDED. The approver must satisfy their MFA requirements before their vote is counted. - The activity executes once consensus is met. A user’s vote only counts toward consensus after their MFA requirements are satisfied.