Discussions

Ask a Question
Back to All

Issue on sandbox Authentication

I am trying to test the Authentication call after I have followed all the steps for creating all the needed headers. However I keep getting public role.

I have double and triple checked but the digest and signatures match exactly with the online tools provided by you.

Any ideas on why this might be happening?

One thing that I would like to mention is that I am using a proxy because I could not send the request otherwise via localhost (CORS does not allow it and I am using an ionic application). Could that be the issue? Even though I have already tried adding in the host header the proxy prefix but still no success.

I am sending my requests via axios.


Network tab in chrome provided the following info.
An example of what I am sending for the request is:

General

Request URL: http://localhost:8080/https://staging.authservices.satispay.com/wally-services/protocol/tests/signature
Request Method: POST
Status Code: 200 OK
Remote Address: 127.0.0.1:8080
Referrer Policy: strict-origin-when-cross-origin

Request Headers

Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,pt;q=0.8,el;q=0.7
Connection: keep-alive
Content-Length: 1472
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
Origin: http://localhost:8100
Referer: http://localhost:8100/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Mobile Safari/537.36

Request Payload

{headers: {Content-Type: "application/json", Host: "staging.authservices.satispay.com",…},…}
data: "{↵ "flow": "MATCH_CODE",↵ "amount_unit": 100,↵ "currency": "EUR"↵}"
headers: {Content-Type: "application/json", Host: "staging.authservices.satispay.com",…}
Authorization: "Signature keyId="p55qbfrnhlv3dbaupfaqsddjd4il2o1iodpgm355dolgldapvhcbvhkftrmm9vtbqkttncblgojru16alvncktp3rb7u18h1r3qfadud0v91fnu6j1amvfmo69g3apa7kke5aht24kaehuk7oobiuofhe1g4s97vfrpodnl8k7fhtl043qrl89t71umge0thcr7h0o73", algorithm="rsa-sha256", headers="(request-target): post /wally-services/protocol/tests/signature↵host: staging.authservices.satispay.com↵date: Fri, 12 Feb 2021 10:51:56 +0000↵digest: SHA-256=ZML76UQPYzw5yDTmhySnU1S8nmqGde/jhqOG5rpfVSI=", signature="fbL5zQOIq/knyYeLSr0fSFBfGemw5V96m4WhLG7RXFwGqB9bJ4KRCxocLnk52m7hxurkhMhk5DB6zSydt3kWSTy5fP5fcTKdNf2WiMo0FFwNLsG/0VTfoL1Lp8JDJuYS1IMjKvlEXO5j9B12S1YbIoUHKDsrxnpFRgT0JLosHtQFKETKSSoP3Cwu6c/CJRr+nsvCNUBHS4bHbnUKu5jZ3Os/F0jFQHQdXRs9HjbiIlDizWM/oQx516PFxZJJ35Mm2noqrUJtm/lhCfOJC+ztA0yXKRY/TcdZT36TOOlwq0AUHvARZnClPwPb0cokETJqn8Ba4UAtGwN2f75n6rcJDwh4W/88JKvcStiH/QtT12MUDAybp2JvsH/ACe/0w22qF2yWEY+CmjulnSGuYmd9QBRPpnsbtSiKCzNDvRmqd481+YrSjtT2zdffLYi7QBcadzp43HUIFKQ2poq4erxlfwvIWNn/tbBNbzyO1GiBvHkN+MjWDGUKx8OtvsVMqfXLo3UfOM+oUU5Zrm0Vo/Y9por9ttU08Oweb8eLllO3znwer4jIBVy1SSMzvXV3RIZo8MAD7MmViE2tp3styIlneQx1tKBVnCoLMu+LYAhNCz33ZN+jEZVDRvpGdybMJAft0Y9ndks78m7b9JJ4YO4lSMc0NBeatM2T+vrNZ7hUA6w=""
Content-Type: "application/json"
Date: "Fri, 12 Feb 2021 10:51:56 +0000"
Digest: "SHA-256=ZML76UQPYzw5yDTmhySnU1S8nmqGde/jhqOG5rpfVSI="
Host: "staging.authservices.satispay.com"