2014-04-01 55 views
1

我正在測試用戶流程以回答「bofa」的三個問題。我試圖模擬一個用戶在通過格子傳遞給他們的問題中輸入了不正確的答案。格子MFA響應不正確

我生POST就像

"POST /connect/step?client_id=blah&secret=blah&mfa=1again&access_token=XYZ&type=bofa&options[webhook]=http%3A%2F%2Fx.y.zom%2Fplaid_webhook%2Fantennas HTTP/1.1\r\nConnection: close\r\nHost: tartan.plaid.com\r\nContent-Length: 0\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n" 

注意到我的不正確的答案(「1again」而不是「再次」),但也注意到訪問令牌(「XYZ」),這是正確的存在。

這是

-> "HTTP/1.1 400 Bad Request\r\n" 
-> "Content-Type: application/json; charset=utf-8\r\n" 
-> "Date: Wed, 19 Mar 2014 20:20:20 GMT\r\n" 
-> "X-Powered-By: Express\r\n" 
-> "Content-Length: 144\r\n" 
-> "Connection: Close\r\n" 
-> "\r\n" 
reading 144 bytes... 
-> "{\"code\":1000,\"message\":\"access_token missing\",\"resolve\":\"You need to include the access_token that you received from the original submit call.\"}" 

回答

2

一切都應該順利地與MFA用戶流量在沙箱中運行,現在的反應!如果您使用「1again」(例如)代替正確的「再次」響應,您將收到相應的錯誤代碼響應:

{"code":1203,"message":"invalid mfa","resolve":"The MFA response provided was not correct."}