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. Manage user's custom data

¶ Manage user-defined fields

Update Time: 2022-05-15 21:19:24
Edit

User-defined fields are additional fields that can be added to user objects in addition to the basic user fields. Developers can store a small amount of business-related data by setting custom fields.

¶ Configure user-defined fields

You can define the following types of custom fields:

  • String;
  • Number;
  • Date;
  • Boolean value;
  • Object;

You can configure user-defined fields on the Settings -> Extended Fields page:

¶ Open registration information completion

After configuring the custom fields, you can open the registration information completion page of the application to allow users to complete the information in these custom fields.

On the application details -> login registration configuration page, tick enable registration information completion, and then select the custom field just added:

The type of input can be chosen as text, password, number, date, color, Email and picture, which will determine the final display style of the page.

Click Save, and then visit the login page of the app.

After the user clicks to register, it will be redirected to the following registration information completion page:

After the user has successfully registered, you can see the custom value that the user just entered on the user details page:

¶ Use API & SDK to manage user-defined data

Authing also supports SDKs in various languages ​​such as Java, JavaScript/Node.js, Python, PHP, C#, Swift, Go, Ruby, WeChat applet, etc. You can choose the SDK you are familiar with:

  • Java/Kotlin
  • JavaScript/Node.js
  • Python
  • PHP
  • C#
  • Swift
  • Go
  • Ruby
  • Wechat
Language
Java
Loading...

Use 用户池 ID(UserPool ID) 和应用 ID(AppID) 初始化 Java SDK 的 AuthenticationClient:

import cn.authing.core.auth.AuthenticationClient;
// Use  AppId 和 appHost 进行初始化
AuthenticationClient authentication = new AuthenticationClient(APP_ID, APP_HOST);

authenticationClient.setSecret("AUTHING_APP_SECRET");

首先 Use 用户的 token 初始化 SDK:

authenticationClient.setAccessToken("ID_TOKEN");

设置自定义字段:

List<UserDefinedData> list = authenticationClient.setUdv('school', '华中科技大学').execute();

获取该用户最新的自定义数据:

List<UserDefinedData> list = authenticationClient.listUdv().execute();
Prev: Binding account Next: View user's login history
  • Configure user-defined fields
  • Open registration information completion
  • Use API & SDK to manage user-defined 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.