1.I test and it works well
Token URI:oauth.battle.net/token
2.When I test for the mainland of China(CN),the problems come.
Token URI:oauth.battlenet.com.cn/token
the result is as follows:
{“error”:“unauthorized”,“error_description”:“Bad credentials”}
Would you tell me why? Thank you very much!
you have to use the cn token url with the cn auth url
Got the same result for cn OAuth token.
My result shows:
- without client_id in query parameter:
response status: 401
{
“error”: “unauthorized”,
“error_description”: “An Authentication object was not found in the SecurityContext”
}
- with client_id/client_secret:
response status: 401
{
“error”: “invalid_client”,
“error_description”: “Bad client credentials”
}
It looks CN has different verification of access (client_id/client_secret) than other regions (US/EU/etc), but I’ve nowhere to prove it.