Loop/Test/E2E-msisdn-gateway
From MozillaWiki
Overview
End-2-end testing of msisdn-gateway is performed against a real endpoint (Nexmo).
For more information about Mobile-ID, please refer to the following wiki:
There are several tools available for doing end-2-end tests against msisdn-gateway, some of which are outdated.
I recommend:
- http://mozilla-services.github.io/msisdn-verifier-client/ - allows you to verify msisdn-gateway with your browser
- https://github.com/mozilla-services/msisdn-cli - most comprehensive, but requires installation
msisdn-cli
Summary To manually execute an end-2-end test against msisdn-gateway, you will need a cellphone (though it is possible to create an msisdn of your own using a third party company like Twilio or Nexmo).
Example Session
$ msisdn-cli --host=https://msisdn.services.mozilla.com -c 315 -n +1<DEVICE PHONE NUMBER> Please enter the code that you will get by SMS from +12182967993: 104592 Verified: { "exp": 1432068391680, "iat": 1431981981680, "iss": "msisdn.services.mozilla.com", "lastAuthAt": 1431981991680, "lastVerifiedAt": 1431981991523, "principal": { "email": "92663fd3-66c4-d56d-b496-50b533f7425a@msisdn.services.mozilla.com" }, "pubkey": "<stripped>", "public-key": "<stripped>", "publicKey": "<stripped>", "verifiedMSISDN": "+1<DEVICE PHONE NUMBER>" }