summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2015-09-17Merge remote-tracking branch 'alster/feature/extra-signup-params'Azul
2015-09-17Allow extra signup params from accountkaeff
For the feature/invite-codes in leap_web, we need to be able to pass an extra parameter (the invite code) from the signup form to the server. This approach allows the consumer of SRP to specify a custom implementation of Account that returns arbitrary `loginParams`, and Session will pass them on so that they become part of the XHR. - Split session.signup into signup and update to restrict extra params to signup only
2015-09-16Remove jasmine html runner & outdated libskaeff
2015-09-16Run tests via cli using karma & PhantomJS for Traviskaeff
Instead of jasmine's HTML runner, use karma to run specs. karma & all other dependencies are installed via npm and executed via node.js. This allows TravisCI to execute the test, and as a side effect, bumps the versions on the testing toolchain. - Install node.js - Run `npm install` once to download dependencies. - Run `npm test` to run all tests Things to bear in mind: - This commit adds general project information in `package.js` - `karma.conf.js` specifies the order in which src, spec and lib files are loaded - Switch to jasmine spies instead of sinon
2013-10-14properly treat utf8 chars in passwordAzul
utf-8 encoding used to be bundled with the SHA256 library. However we only want to utf8 encode strings that are actual user input. We do not want to encode the bytearrays that are used when hashing the hex values calculated during for SRP. So I separated the utf-8 encoding and the sha256 hashing.
2013-07-12prefix incoming B tooAzul
2013-07-12also prefix our own toString(16) hex valuesAzul
2013-07-12the 0 prefix in hex is essential for building the M and M2 stringsAzul
2013-06-24refactor: separate account from sessionAzul
2013-06-24refactor: rename constants to calculate and clean up hash usageAzul
2013-06-24refactor: separate calculations from sessionAzul
2013-06-24fix bug wrt zero padding of hashesAzul
2012-11-20all request should go to absolute pathsAzul
They should be independent of the url we're serving the page from
2012-11-20sending the parsed json object to the error handlerAzul
2012-11-19removed the SRP class - using just a plain srp object nowAzul
2012-11-19first step at cleaning up the srpAzul
2012-11-19works - but not quite what i want. Exposing jqXHR to error functionAzul
2012-11-14removed outdated django remote and all related filesAzul
Also cleaned up the specs a bit
2012-11-12adopting tests to new .json urlsAzul
2012-11-12specifying charset and fetching jquery remotelyAzul
This way you don't have to add jquery to the lib dir for specs to work
2012-10-17hand success and error messages to identify by defaultAzul
also cleaned up some other parts that were not needed anymore
2012-10-16use M2 as the key for the server authAzul
2012-10-16added unit tests for session calculationsAzul
2012-10-15expecting the salt to be send with key saltAzul
2012-10-15all rest tests passing, using proper verbsAzul
2012-10-14calculating the right M and M2!Azul
still missing some error handling, this in Django specs and the right http verbs
2012-10-14got SRP v6a test setup and basic rest flow to workAzul
* still need to fix the algo for auth * Also need to get the http verbs right
2012-10-12got signup to work in accordance with py srpAzul
2012-10-02using jquery for signup post now. login still pendingAzul
2012-10-02fixed restful signup testAzul
2012-08-21moved srp-js files from lib to srcAzul
2012-08-21moved on with refactoringAzul
* srp_register now is part of srp.js * moved server specific stuff into plainXHR (such as fetching the seed from the server) * fixed tests
2012-08-13seperated session from the srp flow - login tests pass, signup failAzul
2012-08-04started implementing a restful signupAzul
2012-08-04copied jqueryRest and restful specs from djangoAzul
no real change yet
2012-08-03moved all xhr related stuff to a seperate classAzul
We can replace this if we want to use jquery ajax or similar. Also this has all the urls so it's super easy to overwrite
2012-07-20moved src to lib and use relative path in require_treeAzul
2012-07-20INCOMPATIBLE: major restructuring of the repositoryAzul
* removed Django code - we're keeping the tests - so I hope the two can still be used together * removed js packer - everyone has their own packaging strategy these days * cleaned up the repository - we only have js so javascript directory does not make much sense