2017-08-24 27 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

エラー応答が非常に明確ようです。クライアントIDとクライアントシークレットの両方がIDプロバイダに登録されているものと同じであるかどうかを確認します。