Invalid signature problem

オープン
#1,002 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞

調査の方向性

OAuth-1.0-Server チュートリアルと、issue に記載されている POST /oauth/initiate リクエストから始め、ドキュメントに記載された署名の構築方法と、サーバーが期待する OAuth パラメーターを比較してください。リポジトリのファイルもテストも指定されていません。拒否された署名の原因を特定し、確認済みの修正または再現を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I follow step by step this tutorial OAuth-1.0-Server to get the request token but I can't.

Assuming that my oauth_consumer_key=123 and my consumer_secret=456. My request would be the next:

POST /oauth/initiate HTTP/1.1
Host: api.openbankproject.com
Authorization: OAuth
oauth_callback=oob,
oauth_consumer_key="123",
oauth_signature_method="HMAC-SHA256",
oauth_timestamp="1522987628",
oauth_nonce="ErFKKs"

So, I encode the parameters in this way (Following the instructions):

  • First, the http method:
    POST&

  • Then, the base string URI encoded:
    POST&https%3A%2F%2Fapi.openbankproject.com&

  • Finally, I get the base string after normalizing the request parameters according to Section 3.4.1.3.2:
    POST&https%3A%2F%2Fapi.openbankproject.com&oauth_callback%3Doob%26oauth_consumer_key%3D123%26oauth_nonce%3DErFKKs%26oauth_signature_method%3DHMAC-SHA256%26oauth_timestamp%3D1522987628

  • The secret is created by the concatenation of consumer_secret and oauth_consumer_key in this way:
    456&123 (consumer_secret&oauth_consumer_key)

  • So, if I sign the base string with the secret 456&123 using HMAC-SHA256 I get:
    9a055becbf91403ec0ecc73f574862a7c9e77fcd27650ec5a530fbbfabe1f948

  • And after encoding to Base64 I get:
    OWEwNTViZWNiZjkxNDAzZWMwZWNjNzNmNTc0ODYyYTdjOWU3N2ZjZDI3NjUwZWM1YTUzMGZiYmZhYmUxZjk0OA==

And it doesn't work !!! I cannot get my request token, my signature is wrong.
Am I doing something wrong ? Please, I need help

主要言語
Scala
スター
1.7k
フォーク
482
平均マージ
1日 12時間
マージ済み PR(30日)
15

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenBankProject/OBP-API のほかの issue

OpenBankProject/OBP-API の issue をすべて見る

似ている issue

Scala の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。