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

    • Authenticate your first user

      • Use the hosted login page to complete the authentication
      • Use the embedded login component to complete the authentication
      • Use API & SDK to complete authentication
      • Verify user credentials (token)
      • Authority management for users
      • Realize logout
      • Next you may need
    • Access methods for different types of applications

    • Console overview
  • 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

  • Audit Log

  • Configure security information

  • Configure user pool information

  • Deployment plan

  • Frequently Asked Questions FAQs

  1. Guides
  2. /
  3. Quick start

  4. /
  5. Authenticate your first user
  6. /
  7. Realize logout

¶ how to log out

Update Time: 2022-05-14 18:16:59
Edit

Authing supports multiple methods of logging out:

  • [Log out from the personal center](#Log out from the personal center): This method is suitable for you to use the online personal center hosted by Authing.
  • [Log out from the front end](#Log out from the front end): This method is suitable for almost any scenario.
  • [Log out from the back end](#Log out from the back end): This method is suitable for scenarios where the administrator calls the API to force users to get offline.
  • [Force users to log out](Force users to log out): This method is suitable for scenarios where the administrator uses the console to force users to get offline.

¶ Log out from the personal center

An end user can visit https://{application_domain_name}.authing.cn/u to enter the personal center, click on the avatar in the upper right corner, and click logout.

¶ Log out from the front end

Guide your end users to visit https://{application_domain_name}.authing.cn/login/profile/logout?redirect_uri= to logout. redirect_uri can be filled in with a callback address after logging out. For example, you can redirect the user to your business homepage.

Attention ⚠️: you need to use encodeURIComponent to do URI encode operation on the callback link.

¶ Log out from the back end

If you need to log out an Authing user on the backend, you need to use the following interface:

  • Interface description: The user pool administrator logs out the Authing user on the backend.
  • Interface:POST https://<YOUR_APP_NAME>.authing.cn/api/v2/applications/:appId/kick-active-users
  • Request parameters:
ParametersTypeRequiredDescription
userIdsstringYesUser ID array
appIdstringYesApplication ID
  • Return data:
{
  "code": 200,
  "message": "forced logout success"
}

¶ Force users to log out

User pool administrator can force users to log out through console > application > login status administration.

Prev: Authority management for users Next: Next you may need
  • Log out from the personal center
  • Log out from the front end
  • Log out from the back end
  • Force users to log out

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.