summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-16not caching x,V,salt to avoid conflictsAzul
2012-10-16added unit tests for session calculationsAzul
2012-10-15expecting the salt to be send with key saltAzul
2012-10-15Merge branch 'feature-jquery-remote' into developAzul
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-21first round of making jslint happyAzul
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-20expose function to create saltAzul
2012-07-20calcV to calculate verifier, do not use srp_url or srp_server anymoreAzul
We can easily overwrite the corresponding functions
2012-07-20moved src to lib and use relative path in require_treeAzul
2012-07-20Merge branch 'master' of git://github.com/leapcode/srp-jsAzul
2012-07-20added an index file to use with sprocketsAzul
2012-07-20added an index file to use with sprocketsAzul
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
2012-07-02reject server response with error message if B=0Azul
2012-07-02expectRequest and respond{JSON,XML} functions to simplify the testsAzul
2012-07-02refactoring the tests a bitAzul
2012-07-02parsing JSON responses tested and fixedAzul
2012-07-02factored out parsing the responsesAzul
2012-07-02check for ready state and status before callbackAzul
2012-07-02changed indentation to the 2 spaces i loveAzul
2012-07-02added integration test for loginAzul
* added a small hook in srp to set a, A and Astr for testing * moved generic functions for tests to SpecHelper
2012-06-29Connection Header is not allowed according to xhr spec.Azul
Not sure if this was needed. Tests will throw exceptions when it's in but maybe some legacy browsers require it.
2012-06-29added tests for registration with jasmin and sinonAzul
2012-06-27adding license remark in readmeAzul
2012-06-27added Readme from the original project siteAzul
2009-08-15This adds a file 'utils.py' to simplify templating.ausiv4
Functions exist to create headers that include javascript files, and create javascript functions for login and registration. There are also functions that create login and registration forms. These functions don't necessarily account for everything a web developer might want to do, but it should simplify things for most developers and provide guidelines for developers who want to build on top of this functionality. Views.py now builds the login and register pages based on these functions. The register page now uses the login.html template, and the register.html template should be deleted in the next release.
2009-08-14Fixed bug in views.py, changed files named 'hash' to 'crypto' since it now ↵ausiv4
includes AES.
2009-08-13Added support for logins without javascript. This is configurable on a ↵ausiv4
site-by-site basis.
2009-08-12Rather than passing the necessary parameters to the SRP constructor, I've ↵ausiv4
made them hidden fields in the form. This way a bookmarklet will be able to read the fields, and authentication can be done without trusting the javascript sent by the server. I also organized urls.py
2009-08-12When upgrading the user from a non-srp account to an SRP account, the client ↵ausiv4
must send the server the password. I wasn't happy about doing this in plaintext, so I've incorporated slowAES on both the client and the server to encrypt the password before it is sent, using the key generated in the first SRP transaction.
2009-08-09Significant cleanup to srp.js.ausiv4
2009-08-08This adds upgrade functionality so that existing django apps can switch to SRP.ausiv4
If a user exists in the auth table but not the srp table, the server sends back the algorithm and salt needed to hash the password. The hashed password is used to authenticate the user. After the server authenticates the user and the user verifies the identity of the server, the user sends the password in plaintext. The server uses the plaintext password to calculate the verifier and stores. Finally, the client reinitiates the login process.
2009-08-07This update separates the register functionality from the login library. The ↵ausiv4
login script is now .3 kb smaller, but there is a new 1.1 kb register file. I think that registrations are rare enough relative to logins that this should be a worthwhile tradeoff. This also prepares a framework for importing an update file, which will allow existing installations to upgrade from less secure authentication protocols, so some of the overhead in srp.js that was added here will help reduce the size as we add the update functionality.
2009-08-06Changes were made to improve database efficiency and to use the django ↵ausiv4
authentication backend framework.
2009-08-04Removed debugging line from srp.jsausiv4
2009-08-04Improved documentation for srp.js.ausiv4
Made srpPath a part of the SRP object to reduce namespace clutter.
2009-08-04Now the import_hashes function checks to see whether the srp file is packed ↵ausiv4
or not, and loads the packed or unpacked hash files accordingly. It occurs to me that perhaps all of the hash functions should be put into a single object to reduce namespace pollution.