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)

  • Open up WeChat ecology
  • Migrate users to Authing

  • Management organization

  • Expandable capabilities

    • Use Webhook to monitor user events
    • Custom authentication process (Pipeline)

      • Create your first Pipeline function
      • Pipeline API Reference
      • Pipeline application scenario
      • Pipeline User Object
      • Pipeline Context Object
      • Use environment variables in Pipeline
      • Available Node Modules
      • How to debug
      • FAQ
      • Private deployment
  • Audit Log

  • Configure security information

  • Configure user pool information

  • Deployment plan

  • Frequently Asked Questions FAQs

  1. Guides
  2. /
  3. Expandable capabilities
  4. /
  5. Custom authentication process (Pipeline)
  6. /
  7. Create your first Pipeline function

¶ Create your first pipeline function

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

The Pipeline function is a custom JavaScript code executed in the Authing authentication process. With the help of Pipeline, developers can easily customize and extend the capabilities of Authing.

¶ Select a pipeline template

Authing provides many templates that can be used directly to help you get started quickly.

You can also view the list of Pipeline template functions here:https://github.com/authing/pipeline (opens new window). At the same time, you are welcome to contribute to us the Pipeline template function.

First, select the Console'sExtention Capabilities - Custom Pipeline page and you will see some tips.

Select a trigger scene and click the 「+」 button. We have more than 20 templates to choose:

Select "Registered Email Suffix White List" in Access Control.

¶ Create a pipeline function

The domain name whitelist we set here is "example.com", you can also change it to your own.

Click the "Save" button in the lower left corner, we will deploy this function to the cloud, it will take some time, please be patient.

Back to the Pipeline function list page, you can see the function we just added.

If you have multiple Pipeline functions, you can drag to sort them.

¶ Verify that the whitelist is valid

First, use the non-example.com suffix mailbox and see the "Access Denied." prompt returned, which is the prompt message we specified in the custom Pipeline function.

Then use the email with the suffix of example.com to register. The registration is successful!

¶ Next

  • Read the development documentation of the Pipeline function.
  • Understand that the request information can be obtained in the pipe function:user object and context object.
  • Learn how to use environment variables in the pipe function.
  • Learn which Node Modules out of the box can be used in the pipe function. You can use authing-js-sdk directly!
  • We provide a lot of rich pipeline function templates, click here (opens new window).
  • We also provide convenient online debugging methods for developers to debug online.
Prev: Custom authentication process (Pipeline) Next: Pipeline API Reference
  • Select a pipeline template
  • Create a pipeline function
  • Verify that the whitelist is valid
  • Next

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.