OpenBankProject / OpenBankProject/OBP-API
Invalid signature problem
Nessuno ha ancora preso questa issue.
- Lingua principale
- Scala
- Stelle
- 1.7k
- Fork
- 482
- Merge medio
- 1g 12h
- PR unite (30g)
- 15
Descrizione
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&123using 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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il tutorial OAuth-1.0-Server e la richiesta POST /oauth/initiate descritta nell'issue, quindi confronta la costruzione della firma documentata con i parametri OAuth attesi dal server. Non sono indicati file del repository né test; il lavoro è completato quando viene identificata la causa della firma rifiutata e viene documentata una correzione o riproduzione confermata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- api, authentication, security
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100