Login Flow

The overall flow using the server-side mode is as follows:

  1. The user accesses the third-party application, which initiates an authorization login request to Zhuyun IDaaS, forcing the browser to display the unified login interface.
  2. After the user inputs relevant credential information, such as username and password, and submits it, the Zhuyun IDaaS platform, upon successful authentication, will redirect back to the third-party application with the authorization code code parameter.
  3. The third-party application uses the authorization code code to call the Zhuyun IDaaS platform's interface to exchange for an access token access_token.
  4. After the Zhuyun IDaaS platform verifies that the authorization code code is valid, it will return an access_token to the application.
  5. The third-party application uses the token access_token (provided it is valid and not expired) to call Zhuyun IDaaS API interfaces to obtain user information.
  6. After the Zhuyun IDaaS platform returns the user information to the application system, the application system guides the user into the system.

# Development Steps

The Zhuyun IDaaS platform adopts the OAuth 2.0 Authorization Code Grant mode for integration. The development process is as follows:

# Step1: Obtain the Authorization Code

Click to view the interface for obtaining the authorization code

# Step2: Obtain the Access Token

Click to view the interface for obtaining the Access Token

# Step3: Obtain User Information

Click to view the interface for obtaining user information