我们正在尝试将 Superdesk 与移动应用程序一起实施。我们发现 superdesk API 可以使用Production APIs访问。但是,当尝试使用 AuthServer 检索令牌时,我们将 Invalid Grant 作为错误。
curl --location --request POST 'http://localhost:8080/api/auth_server/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'username=admin' \
--data-urlencode 'password=admin2020' \
--data-urlencode **'client_id=superdesk_client'**
输出
{
"error": "invalid_grant"
}
客户使用该 文档注册到 superdesk 。
docker-compose run superdesk-server run python manage.py auth_server:register_client "superdesk_client"