2017-08-24 94 views
0

我正在使用此命令通過curl發送REST API請求,但出現錯誤。REST API curl POST

curl -X POST \ 
    -H "Accept: */*" \ 
    -H "Content-Length: 101" \ 
    -H "Content-Type: application/x-www-form-urlencoded" \ 
    -d "grant_type=client_credentials&client_id=sftp-backup&client_secret=6f5328f2-d5d3-4600-9daf-378001bae0dd" \ 
    "https://x.x.x.x/auth/realms/cbam/protocol/openid-connect/token" 

{"error_description":"Invalid client secret","error":"unauthorized_client"}

回答

0

錯誤的反應似乎很清楚。檢查客戶端密鑰和身份提供者是否相同。