GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
Development Integration
  • API

  • SDK

    • Java

    • Node.js

    • Python

      • Installation and Usage
      • Authentication Module

        • Login

        • Logout

        • Register

        • User Profile

        • Account Binding

        • MFA Factor Management

          • Initiate MFA Factor Enrollment Request
          • Enroll MFA Factor
          • Reset MFA Factor
          • Get All Enrolled MFA Factors
          • Get Specific Enrolled MFA Factor
          • Get Available MFA Factors
        • User Related Resources

        • Message Service

        • WeChat Related APIs

        • Others

        • OIDC Module
        • OAuth Module
        • SAML Module
        • CAS Module
        • Events
      • Management Module

  • Error Codes
  1. Development Integration
  2. /
  3. SDK
  4. /
  5. Python
  6. /
  7. Authentication Module

  8. /
  9. MFA Factor Management

  10. /
  11. Enroll MFA Factor

¶ Bind MFA authentication elements

Update time: 2025-07-23 07:34:21
Edit

This document is automatically generated based on https://github.com/authing/authing-docs-factory based on https://api-explorer.genauth.ai V3 API, and is consistent with API parameters and return results. If the description of this document is incorrect, please refer to V3 API.

Bind MFA elements.

¶ Method name

AuthenticationClient.enroll_factor

¶ Request parameters

NameType
Required
Default value
Description
Sample value
enrollmentDataEnrollFactorEnrollmentDataDtoYes-Verification information required by the corresponding authentication factor when binding the MFA authentication factor.
enrollmentTokenstringYes-The enrollmentToken returned by the "Initiate a request to bind an MFA authentication factor" interface. This token is valid for one minute.TQoCISidM0kBji0dxRi3afSDtkvvMiUphenIgLF87y+JOw4T8fDWOsHHXIcvZ2EVESXhTrfGyh1iGf52Cg9e9byeFQvm1VZ0QWrwmzwpntFAVtf1IP9LqVhmzXhBMFvLOcU/z1Eh/n0CrwX0uHNpJoMW9lp9AqHd9HvauaGKX+Y=
factorTypestringyes-MFA authentication factor type:
- OTP: OTP
- SMS: SMS
- EMAIL: Email
- FACE: Face
SMS

¶ Request response

Type: EnrollFactorRespDto

NameTypeDescription
statusCodenumberBusiness status code, which can be used to determine whether the operation is successful. 200 means success.
messagestringDescription
apiCodenumberSegmented error code, which can be used to get the specific error type (successful requests are not returned). For a detailed list of error codes, see: API Code List (opens new window)
requestIdstringRequest ID. It will be returned when the request fails.

Sample result:

{
  "statusCode": 200,
  "message": "Operation successful",
  "requestId": "934108e5-9fbf-4d24-8da1-c330328abd6c"
}

¶ Data structure

¶ EnrollFactorEnrollmentDataDto

NameType
Is it required?
Description
Sample value
passCodestringNoThis parameter is required when binding SMS, email verification code, or OTP authentication factors. The value is the SMS/email/OTP verification code.123456
photostringNoThis parameter is required when binding a FACE-type authentication element. The value is the bound face image link.132434235ad244
isExternalPhotobooleanNoThis parameter is required when binding a FACE-type authentication element. Whether it is an external link image.true
Previous article: Initiate MFA Factor Enrollment Request Next article: Reset MFA Factor
  • Method name
  • Request parameters
  • Request response
  • Data structure

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.