Authing DocsDocuments
Concept
workflow
Guides
Development Integration
Application integration
Concept
workflow
Guides
Development Integration
Application integration
Old Version
Guides
  • Quick start

  • Authenticate the user

  • Authority management for users

  • Authorization

  • Manage user accounts

  • Manage User Directory

  • Management Application

  • Become a source of federal authentication identity

  • Connect to an external identity provider (IdP)

    • Social Identity Provider

    • Enterprise Identity Provider

    • Custom database

      • Configure database connection and scripting
      • Lazy migration of users to Authing
      • Fully use a custom database to save user data
      • Best Practice
  • Open up WeChat ecology
  • Migrate users to Authing

  • Management organization

  • Expandable capabilities

  • Audit Log

  • Configure security information

  • Configure user pool information

  • Deployment plan

  • Frequently Asked Questions FAQs

  1. Guides
  2. /
  3. Connect to an external identity provider (IdP)
  4. /
  5. Custom database
  6. /
  7. Lazy migration of users to Authing

¶ Migrate user to Authing with Lazy Migration

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

¶ Migration Flow

Authing supports migrating user information from customized database to Authing database without stopping the server. When this function is enabled, the normal login and registration requests will be affected:

Authentication request:

  • The Authing will use your customized database script to authenticate user when he/she tries to login for the first time. The user information will be migrated to Authing database if the authentication succeeds or it will throw an error to notify the user that the account does not exist or the password is wrong.
  • Users do not need to change their password
  • When users try to login again, the authentication flow will use the Authing database.
  • When all users are at least authenticated successfully for one time, the migration flow succeeds.

Registration flow:

  • When a user tries to register a new account, the script will check if the account already exists in the Authing database. If a same account is found, the script will throw an error to notify the user the account already exists.
  • If the user is not in the Authing database, the getUser interface in the script will check if the user is in the customized database. If the same account is found, the script will throw an error to notify the user the account already exists.
  • If the user is not found in both databases, the registration flow succeeds.

¶ Setup Scripts

You need to access Authing console (opens new window) and go to Connect IdP - Customized database to setup scripts of login and searchUser. You can find more details at:

  • Compile login script。
  • Compile searchUser script。

¶ Test Migration Result

After you enabled the user migration function, you can test migrated users in following ways:

  • Use admin API for getting user list or seraching users.
  • Check users in User Management - User List of the Authing console (opens new window).

¶ After Migration

You need to disable the customized database after all migration work is done

Prev: Configure database connection and scripting Next: Fully use a custom database to save user data
  • Migration Flow
  • Setup Scripts
  • Test Migration Result
  • After Migration

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.