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

  • Authenticate the user

  • Authority management for users

  • Authorization

  • Manage user accounts

    • User field interpretation
    • Administrator create account
    • Manage user accounts
    • Binding account
    • Manage user's custom data
    • View user's login history
    • View the user's geographic location
    • Enhance account security
    • Manage user login status
    • Control which applications users can access
    • User groups
  • Manage User Directory

  • Management Application

  • Become a source of federal authentication identity

  • Connect to an external identity provider (IdP)

  • 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. Manage user accounts
  4. /
  5. Binding account

¶ Bind account

Update Time: 2022-05-15 20:08:30
Edit

You may face this scenario: your user registered an account with a phone number, and then registered an account with another social account. Now you want to bind the social account to the phone number account. Later, when the user uses the social account to log in, he/she will log in to the phone account and return the information of the phone account.

You can bind the user's social account to his main account (phone number, email account) by calling the following interface:

POST
https://core.authing.cn/api/v2/users/link

Bind social account to master account

If you want to bind a social account to a main account, the end user must provide the credentials of the social account and the main account to prove that he is the owner of the two accounts, and then perform binding.

Headers
Content-Type
REQUIRED
string

application/x-www-form-urlencoded

Form Data Parameters
primaryUserToken
REQUIRED
string

master account Token

secondaryUserToken
REQUIRED
string

social account Token

200: OK
{
  "code": 200,
  "message": "绑定成功"
}

When the social account is bound, the data corresponding to the original social account will be deleted, and it is not allowed to log in to the original social account again.

Prev: Manage user accounts Next: Manage user's custom data

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.