我正在尝试通过驻留在另一台服务器上的应用程序的 Post Call 从 Identity Server 3 获取令牌。
我将以下值发布到https://mydomainhost.net/connect/token:
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
'client_id' => 'myclientid',
'client_secret' => 'myclientsecret',
'redirect_uri' => 'http://myotherdomain.com/test.php',
'grant_type' => 'authorization_code'
)));
但是正在返回以下错误:
string(31) "{"error":"unauthorized_client"}"
我已将“client_id”值更改为肯定未配置的用户名,并获得以下信息:
string(26) "{"error":"invalid_client"}"
我只使用不存在的用户名进行了测试,以查看是否得到不同的结果。
有人可以告诉我这是来自调用 Identity Server 的应用程序的错误,还是来自 Identity Server 中的配置?