Help Center> Meeting> Server API Reference> Login Authentication> Examples> Example 1: App ID Authentication
Updated on 2022-07-04 GMT+08:00

Example 1: App ID Authentication

Scenarios

Before using REST APIs provided by Huawei Cloud Meeting, you must log in to the server. If you do not need to use a service, log out of the server to ensure the security of service APIs.

Service Process

Figure 1 Common login and authentication process
  1. Initialize parameters, including app ID, user ID, and Authorization. For details about how to apply for an app ID and generate a signature, see Introduction to App ID Authentication.
  2. The third-party application sends an authentication request carrying initialized parameters to API Gateway.
  3. After receiving the request, API Gateway forwards the request to Huawei Cloud Meeting Management Platform.
  4. After the authentication is successful, Huawei Cloud Meeting Management Platform returns a token to API Gateway.
  5. API Gateway returns the received token to the third-party application. The token is valid for 12 to 24 hours.
  6. Before the token expires, the third-party application sends a token update request to API Gateway.
  7. API Gateway sends a token update request to Huawei Cloud Meeting Management Platform.
  8. Huawei Cloud Meeting Management Platform returns a new token to API Gateway.
  9. API Gateway returns the new token to the third-party application.
  10. If you do not need to call APIs later, call the logout API to invalidate the token.