Starting next steps on frontend for primary user creation/authentication.
* Add network.authenticateWithAssertion and related tests. * On signup page, start the redirection code to verify with primary in new tab. * in network.js, rename all the onSuccess to onComplete for clarity. * Simplify tests for primary user provisioning while "not authenticated". * Generate fake keys/certs in the provisioning mock. * Save off the keypair/cert given to us by the provisioning frame before getting an assertion. * Generate an assertion and log the user in on primary provisioning success.
Showing
- resources/static/dialog/controllers/dialog.js 10 additions, 7 deletionsresources/static/dialog/controllers/dialog.js
- resources/static/dialog/resources/helpers.js 3 additions, 2 deletionsresources/static/dialog/resources/helpers.js
- resources/static/pages/signup.js 28 additions, 4 deletionsresources/static/pages/signup.js
- resources/static/shared/network.js 95 additions, 71 deletionsresources/static/shared/network.js
- resources/static/shared/user.js 34 additions, 10 deletionsresources/static/shared/user.js
- resources/static/test/index.html 1 addition, 0 deletionsresources/static/test/index.html
- resources/static/test/qunit/mocks/provisioning.js 33 additions, 6 deletionsresources/static/test/qunit/mocks/provisioning.js
- resources/static/test/qunit/mocks/xhr.js 6 additions, 2 deletionsresources/static/test/qunit/mocks/xhr.js
- resources/static/test/qunit/pages/signup_unit_test.js 37 additions, 16 deletionsresources/static/test/qunit/pages/signup_unit_test.js
- resources/static/test/qunit/resources/helpers_unit_test.js 2 additions, 6 deletionsresources/static/test/qunit/resources/helpers_unit_test.js
- resources/static/test/qunit/shared/network_unit_test.js 40 additions, 17 deletionsresources/static/test/qunit/shared/network_unit_test.js
- resources/static/test/qunit/shared/user_unit_test.js 20 additions, 27 deletionsresources/static/test/qunit/shared/user_unit_test.js
- resources/static/test/qunit/testHelpers/helpers.js 3 additions, 5 deletionsresources/static/test/qunit/testHelpers/helpers.js
- resources/views/signup.ejs 11 additions, 0 deletionsresources/views/signup.ejs
Loading
Please register or sign in to comment