Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent gets 'MISSING_TOKEN' when user denies/cancels the logon on the agent #70

Closed
GregTurner opened this issue Mar 25, 2013 · 3 comments

Comments

@GregTurner
Copy link
Contributor

This leaves the QR displayed on the PC.

@dickhardt
Copy link
Owner

which party does the agent get the 'MISSING_TOKEN' from? A little more explanation would be useful.

@GregTurner
Copy link
Contributor Author

Agent.

POST http://bank.a2p3.net/response/callback HTTP/1.1
Host: bank.a2p3.net
Connection: keep-alive
Accept: application/json, text/javascript, /; q=0.01
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Content-Type: application/json;
Origin: file://
Cookie: connect.sess=s%3Aj%3A%7B%7D.ByYL5tZroSYEsOA2I76dsDFcmGVwhx45qahPkLkoERQ
Content-Length: 664
Connection: keep-alive
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B146

{"token":"","state":"m07EZ14jgPMAoD02e69gCw","request":"eyJ0eXAiOiJKV1MiLCJhbGciOiJIUzUxMiIsImtpZCI6IlR6S0pnaW1wYTJON241VHoifQ.eyJpc3MiOiJiYW5rLmEycDMubmV0IiwiYXVkIjoiaXguYTJwMy5uZXQiLCJpYXQiOjEzNjQyNDI2MTQsInJlcXVlc3QuYTJwMy5vcmciOnsicmVzb3VyY2VzIjpbImh0dHA6Ly9wZW9wbGUuYTJwMy5uZXQvc2NvcGUvZGV0YWlscyIsImh0dHA6Ly9zaS5hMnAzLm5ldC9zY29wZS9hbnl0aW1lL251bWJlciJdLCJhdXRoIjp7InBhc3Njb2RlIjp0cnVlLCJhdXRob3JpemF0aW9uIjp0cnVlfSwiY2FsbGJhY2tVUkwiOiJodHRwOi8vYmFuay5hMnAzLm5ldC9yZXNwb25zZS9jYWxsYmFjayJ9fQ.8TzliMRj5Rp9gPsVmW78SHYp7Aa6LpRbgV60JTxehyYGM4QQtuyZ2Dx3sRi-QaPB9KQWyjiA5YKTdnXG6DfcJQ","error":"USER_CANCELLED","errorMessage":"The User cancelled the transaction."}

HTTP/1.1 200 OK
x-powered-by: Express
content-type: application/json; charset=utf-8
content-length: 104
date: Mon, 25 Mar 2013 20:16:56 GMT
connection: keep-alive

{
"error": {
"code": "MISSING_TOKEN",
"message": "token, request and state are required"
}
}

@dickhardt
Copy link
Owner

need to look for error codes when checking if received a valid call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants