2017-04-03 10 views
0

私のアプリケーションのドキュメントhereに承認コードフローを使用しようとしています。私は、REST APIを使ってDocusignに自動ユーザーprovisoningをサポートするためのアプリケーションを構築しています。開発者アカウントを作成し、Integrator Keyと秘密鍵を取得しました。OAuth認証コードgrant - Docusign - 認証コードからアクセスおよびリフレッシュトークンを生成するための呼び出し中にエラーが発生しました

私は、認証コードを取得するには、次の要求を行った:

account-d.docusign.com/oauth/auth?response_type=code&scope=signature&client_id=<MY_CLIENT_ID>&redirect_uri=<localhost> and the response on the browser with the code. 

私は、次の要求使用してトークンを生成するためにcurlコマンドを使用しています:私はこの応答を取得していますが

curl -iX POST account-d.docusign.com/oauth/token -H "Authorization: Basic base64_representation_of_clientId:clientSecret" -d 'grant_type=authorization_code&code=<Auth Code recieved in the previous step>' 

を:

HTTP/1.0 301 Moved Permanently 
Location: account-d.docusign.com/oauth/token 
Server: BigIP 
    Connection: Keep-Alive 
    Content-Length: 0 

このエラー応答の考えられる原因は何ですか?

答えて

2

おそらく、リクエストURIにプロトコル(https://)を追加しようとしていますか?

curl -iX POST https://account-d.docusign.com/oauth/token...

関連する問題