Invalid signature problem

Abierto
#1,002 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
20/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado

Línea de trabajo

Comienza con el tutorial de OAuth-1.0-Server y la solicitud POST /oauth/initiate descrita en el issue; después, compara la construcción de la firma documentada con los parámetros de OAuth esperados por el servidor. No se indica ningún archivo del repositorio ni ninguna prueba; se considera terminado cuando se haya identificado la causa de la firma rechazada y se haya documentado una corrección o reproducción confirmada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Scala
Estrellas
1.7k
Forks
482
Merge medio
1 d 12 h
PR fusionados (30 d)
15

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenBankProject/OBP-API

Todos los issues de OpenBankProject/OBP-API

Issues similares

Más issues de Scala

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.