The email address is contained in the account information, but is not found in the response to the /oauth2/v3/tokeninfo API call from the Huawei Account Server. Why?
Description
After integrating HUAWEI Account Kit, I call the /oauth2/v3/tokeninfo API of the Huawei Account Server to obtain the ID token, but cannot find the email address in the response body. The response in this case is as follows:
{
"at_hash": "XXXXXX",
"aud": "XXXXXX",
"sub": "XXXXXX",
"azp": "XXXXXX",
"kid": "XXXXXX",
"iss": "https://accounts.huawei.com",
"typ": "JWT",
"exp": 1579682457,
"display_name": "338******53",
"iat": XXXXXX,
"alg": "RS256"
}
The response in the API reference is as follows:
Figure 1 Response upon a call success