1
CortanaのConnectedアカウントを使用してUberへのOAuthアクセスを取得しようとしています。重複するgrant_typeパラメータUber API
認証データ、a.k.a. auth url、トークンURL、クライアント秘密などに必要なものはすべて、Uber APIの記述から取得され、Cortanaに渡されたので、私のためにすべての低レベルの仕事を行わなければなりません。
しかし、私はユーバーするには、ログインしようとしているとき、私はそのような答えreceving:それは何をすることができDuplicate grant_type parameter.
:あなたが見ることができるように、プロパティResponseData
に私がエラーを持っている
"error": "The token response status code was not 200.",
"serviceRequest": {
"Host": "login.uber.com",
"Headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Basic VXF6cGVzeWVwYXFPZDBrc0FsUTh3U0dTHFvb2k6TFg0TWFhVDRwU0NFNlM3ZDJVMGJSdlU0VnJhTnRncFJPVlo4UkNqQg=="
},
"Method": "POST",
"Path": "/oauth/v2/token",
"UrlParameters": {
"redirect_uri": "https://www.bing.com/agents/oauth",
"grant_type": "authorization_code",
"code": "some code private here :)"
},
"PostData": "redirect_uri=https%3a%2f%2fwww.bing.com%2fagents%2foauth&grant_type=authorization_code&code=SOME_AUTHORIZATION_CODE"
},
"serviceResponse": {
"Headers": {
"Connection": "keep-alive",
"Pragma": "no-cache",
"X-Uber-App": "login",
"Strict-Transport-Security": "max-age=604800",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Cache-Control": "no-store",
"Date": "Sat, 28 Oct 2017 10:30:57 GMT",
"Set-Cookie": "session=421370309da06baf_59f45c61.RKb0a7144yyiV9HlZgssA5ZvSqE; Domain=login.uber.com; Secure; HttpOnly; Path=/",
"Server": "nginx",
"Content-Length": "84",
"Content-Type": "application/json"
},
"StatusCode": 400,
"ResponseData": "{\"error_description\": \"Duplicate grant_type parameter.\", \"error\": \"invalid_request\"}"
},
を?
はい、そうです、これは同じコードです。しかし、私はそれを繰り返しているわけではありません。リクエストはCortanaによってなされ、私が知る限り、その内容には影響しません。 一般的に、Cortanaの仕組みのように見えます。このサービスはリクエスト内のパラメータを複製します。 – Ivan