以下のPOSTコールが必要です。しかし、正しいクライアントIDとシークレットIDを提供しても、私の呼び出しは拒否されています。Microsoft Graph REST API無効なクライアントシークレット
curl POST https://login.microsoftonline.com/f02....e3/oauth2/token
-H 'Content-Type: application/x-www-form-urlencoded' --data 'grant_type=authorization_code&redirect_uri=https://requestb.in/ac&
source=https://graph.microsoft.com&client_id=1e1....-913d9
&client_secret=YmbSFYz.....4Uk=&scope=mail.read&code=AaAAA........on0a569'
これは私が受け取るエラーです:
curl: (6) Could not resolve host: POST
{"error":"invalid_client","error_description":"AADSTS70002:
Error validating credentials. AADSTS50012: Invalid client secret is
provided.\r\nTrace ID: 78d...a2b\r\nCorrelation ID:
01....ab2\r\nTimestamp: 2016-12-14 01:46:47Z","error_codes":[70002,50012],"timestamp":"2016-12-14 01:46:47Z","trace_id":"78d....a2b","correlation_id":"018.....ab2"}
どのように私はこの問題を解決するだろうか?
EDIT:私はthis documentation
あなたのアプリケーションを登録したときに入力したものと同じ 'redirect_uri'がありますか? –
はいです。彼らが違うなら、それは問題ですか? – WowBow