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
}
Since the returned error code cannot be explained by the documentation ...
you may not be posting as content-type
application/x-www-form-urlencoded
;most of the other API do require posting as
application/json;charset=UTF-8
.I'm working on it, but don't have the that particular method implemented yet.
Maybe check within the next 1-2 weeks; I'm going to implement that anyway.