WSAPI CHANGES: All server responses are now objects, makes some funky browsers...
WSAPI CHANGES: All server responses are now objects, makes some funky browsers happy and prevents certain attacks. closes #217 closes #325 * /wsapi/have_email now returns { email_known: <boolean> } * /wsapi/stage_user now returns { success: <boolean> } * /wsapi/user_creation_status now returns { status: <string> } * /wsapi/complete_user_creation now returns { status: <boolean> } * /wsapi/stage_email now returns { success: <boolean> } * /wsapi/email_addition_status now returns { success: <boolean> } * /wsapi/complete_email_addition now returns { success: <boolean> } * /wsapi/authenticate_user now returns { success: <boolean> } * /wsapi/remove_email now returns { success: <boolean> } * /wsapi/account_cancel now returns { success: <boolean> } * /wsapi/logout now returns { success: <boolean> } Finally, introduced middleware to ensure that resp.json() is not called with anything other than an object.
Showing
- browserid/app.js 13 additions, 0 deletionsbrowserid/app.js
- browserid/lib/wsapi.js 23 additions, 23 deletionsbrowserid/lib/wsapi.js
- browserid/static/dialog/resources/network.js 21 additions, 12 deletionsbrowserid/static/dialog/resources/network.js
- browserid/static/dialog/test/qunit/network_unit_test.js 23 additions, 25 deletionsbrowserid/static/dialog/test/qunit/network_unit_test.js
- browserid/tests/cert-emails-test.js 1 addition, 1 deletionbrowserid/tests/cert-emails-test.js
- browserid/tests/forgotten-email-test.js 15 additions, 15 deletionsbrowserid/tests/forgotten-email-test.js
- browserid/tests/list-emails-wsapi-test.js 2 additions, 2 deletionsbrowserid/tests/list-emails-wsapi-test.js
- browserid/tests/registration-status-wsapi-test.js 7 additions, 7 deletionsbrowserid/tests/registration-status-wsapi-test.js
Loading
Please register or sign in to comment