api.authentication is Undefined in Post-Login Action

Overview

This article explains why api.authentication is undefined, and the preconditions required for executing the following MFA flow APIs in Actions.

api.authentication.enrollWith
api.authentication.enrollWithAny
api.authentication.challengeWith
api.authentication.challengeWithAny

Applies To

  • Multi-Factor Authentication (MFA) flow APIs
  • Actions
  • Prerequisites

Solution

The following conditions must be met for the APIs to execute in Actions.

  • The Customize MFA Factors using Actions setting must be enabled in the MFA view.

Screenshot 2024-12-09 at 20.39.13.png

  • The Action version must be v3 or a future version. To update the Action version to v3, call the PATCH  /api/v2/actions/actions/{id} endpoint by passing the id of the Action with the following payload:
     
{
    "supported_triggers": [
        {
            "id": "post-login",
            "version": "v3"
        }
    ]
}

 

Recommended content

No recommended content found...