DEV Community

HarmonyOS
HarmonyOS

Posted on

The reason why the domain name IP of oauth-login.cloud.huawei.com is not fixed

Read the original article:The reason why the domain name IP of oauth-login.cloud.huawei.com is not fixed

Problem description

Why is Huawei's oauth-login.cloud.huawei.com domain name IP not fixed? Is this domain name a CDN domain name?

Background knowledge

The domain name oauth-login.cloud.huawei.com is the domain name of the external API interface provided by Huawei Account Service. For details, please refer to: Open Authentication Based on OAuth 2.0

Solution

The IP address of the oauth-login.cloud.huawei.com domain name is not fixed, mainly because the domain name is accessed through the CDN (Content Delivery Network) service.

Due to the distributed nature of CDN, when users visit oauth-login.cloud.huawei.com, their requests are directed to the nearest or optimal CDN node, so the IP address is dynamic rather than fixed.

FAQ

Q: How to configure the whitelist using the IP corresponding to the domain name?

A: It is recommended to configure the whitelist using the domain name instead of the IP.

Written by Merve Yonetci

Top comments (0)