Updated on 2024-11-27 GMT+08:00

General Procedure

  1. Configuring the API Frontend

    Set the security authentication mode of the API frontend to Custom or enable Two-Factor Authentication (app or IAM authentication), and select a custom authorizer. If no custom authorizer is available, click Create Custom Authorizer.

  2. Configuring the API Backend

    Add a policy for the backend. Set the Source of the Policy Conditions to System parameter - Frontend authentication parameter, and configure the Parameter Name, Condition Type, and Condition Value. The Parameter Name and Condition Value must be the same as the key-value pair in the context field in the return value of the frontend custom authentication function.

  3. Debugging the API

    Debug the API and check whether the added policy backend is called.