Authing DocsDocuments
Concept
workflow
Guides
Development Integration
Application integration
Concept
workflow
Guides
Development Integration
Application integration
Old Version
Development Integration
  • Single Sign-On (SSO)
  • Login component

  • JavaScript/Node.js

  • Java / Kotlin

  • Python

    • User Authentication Module

    • Management Module

      • Manage resources and permissions
      • Management application
      • Management groups
      • Management organization
      • Management strategy
      • Management subject certification
      • Management role
      • Management log statistics
      • Management User Custom Fields
      • Management user pool configuration
      • Management user
      • Management registration white list
  • C#

  • PHP

  • Go

  • Ruby
  • Android

  • iOS

  • Flutter

  • React Native
  • WeChat Mini Program
  • WeChat webpage authorization
  • Framework Integration
  • Error code
  1. Development Integration
  2. /
  3. Python
  4. /
  5. Management Module
  6. /
  7. Management subject certification

¶ Management subject certification

Update Time: 2025-02-18 09:00:47
Edit

This module is used to conduct body authentication, such as personal authentication or corporate certification.

Initialization module

from authing.v2.management import ManagementClient, ManagementClientOptions

management_client = ManagementClient(
  options=ManagementClientOptions(
    user_pool_id='AUTHING_USERPOOL_ID',
    secret='AUTHING_USERPOOL_SECRET',
))

management.principalAuth.detail() # Get an authorization details
management.principalAuth.authenticate() # Authorize

¶ Get a certification details

Get the main authentication details

def detail(self, user_id)

¶ parameter

  • user_id <str> User ID

¶ Example

management.principalAuth.detail("6139c4d24e78a4d706b7545b")

¶ Example 数据

{
  "message": "获取主体认证信息成功",
  "code": 200,
  "data": {
    "id": "60b4d72f56b49fb97281001b",
    "createdAt": "2021-05-31T12:31:43.416Z",
    "updatedAt": "2021-05-31T12:31:43.416Z",
    "userPoolId": "607fe30c14d1650eb1d888ca",
    "userId": "60a336dc179abb512dd64ae7",
    "principalType": "P",
    "principalName": "xxx",
    "principalCode": "xxxxxxxxxxxxxxx",
    "authenticationTime": "2021-05-31T12:31:43.414Z"
  }
}

¶ Subject authentication

Subject authentication

def authenticate(self, user_id, type, name, id_card, ext)

¶ parameter

  • user_id <str> User ID
  • type <str>Type value is only p or e
  • name <str> name
  • id_card <str>
    • When Type is P, a personal ID card
    • When Type is E, enterprise unified credit coding
  • ext <str>
    • When Type is P, the bank card number
    • When Type is E, the corporate legal person name

¶ Example

management.principalAuth.authenticate("6139c4d24e78a4d706b7545b","P","nn","xx","cq")
Prev: Management strategy Next: Management role
  • Get a certification details
  • Subject authentication

User identity management

Integrated third-party login
Mobile phone number flash check (opens new window)
Universal login form component
Custom authentication process

Enterprise internal management

Single Sign On
Multi-factor Authentication
Authority Management

Developers

Development Document
Framework Integration
Blog (opens new window)
GitHub (opens new window)
Community User Center (opens new window)

Company

400 888 2106
sales@authing.cn
16 / F, Block B, NORTH STAR CENTURY CENTER, Beijing(Total)
room 406, 4th floor, zone B, building 1, No. 200, Tianfu Fifth Street, Chengdu(branch)

Beijing ICP No.19051205-1

© Beijing Steamory Technology Co.