On the Android App, I managed to retrieve the token using AGConnectAuth. Now I would like to verify that token on the server-side using PHP. Any idea?
I tried call https://oauth-login.cloud.huawei.com/oauth2/v3/tokeninfo with the param id_token=eyJhbGciOiJQUzI1NiIsImtpZCI6IXXX and it's returning the following error:
{
"sub_error": 14004,
"error_description": "",
"error": 1400
}
Your ID Token looks quite a bit shorter than the example show in the documentation (2nd link) that has over 1000 characters. I recommend checking if your POST request was formatted correctly with the mandatory parameters and making sure your headers are correct.
Obtaining an Access Token https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/account-obtain-token_hms_reference-0000001050048618 Once you have the correct ID token, here's the process to verify your token.
Verifying an ID Token https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/account-verify-id-token_hms_reference-0000001050050577
Please share your PHP code and POST request so to help further if needed.