Danny Coates
9643a51756
first steps in lastAuthAt
2014-02-11 10:53:40 -08:00
Danny Coates
176b3854b1
refactored errors
2014-02-06 10:24:46 +13:00
Ryan Kelly
3a6dac1121
Include 'fxa-generation' field in signed certificates.
2014-01-30 10:12:31 +11:00
Danny Coates
3ac7077eaf
split the bad email case into a separate error case
2014-01-23 18:23:34 -08:00
Danny Coates
7be72d8b1f
added app level token expiry
2014-01-15 13:23:29 -08:00
Danny Coates
9624eae428
recased 'passCode'
2014-01-14 12:19:00 -08:00
Danny Coates
13aeeb0159
recased 'tokenId' and 'tokenData'
2014-01-14 12:14:57 -08:00
Danny Coates
19da97e705
rename 'verified' to 'emailVerified'
2014-01-14 10:59:37 -08:00
Danny Coates
e5d637c400
changed 'created' field to 'createdAt' and 'generation' to 'verifierSetAt'
2014-01-13 15:38:13 -08:00
Danny Coates
7b2f555680
added 'created' to all tokens and 'generation' to accounts
2014-01-13 15:00:41 -08:00
Danny Coates
a3134ce331
convert verify and reset codes to 128 bit values
2014-01-09 18:32:27 -08:00
Danny Coates
6caca11a5e
created promise.js for easy lib switching.
...
I was messing around with other promise libraries, so I did this.
Seems worth keeping.
2014-01-09 00:01:04 -08:00
Danny Coates
9342afe7b7
switch around email -> normalizedEmail, rawEmail -> email
2014-01-08 13:10:23 -08:00
Danny Coates
abf68d70ec
rearranged cryptic ;) code. added a lazy email validator
2014-01-07 11:04:23 -08:00
Danny Coates
f607491bf1
use rawEmail when sending mail
2014-01-06 13:45:23 -08:00
Danny Coates
d9e74ff2a0
deleted more dead code
2014-01-05 12:45:39 -08:00
Danny Coates
e285cb8ac3
delete stuff
2014-01-03 18:11:33 -08:00
Danny Coates
e973ffed85
use wrapWrapKb on the backend
2014-01-03 16:10:37 -08:00
Danny Coates
8207f432ea
renamed ForgotPasswordToken to PasswordForgotToken
2014-01-02 16:30:49 -08:00
Danny Coates
44057436a1
Naive implementation of onepw
2013-12-20 17:03:07 -08:00
Danny Coates
93c2975f91
tokenid and tokendata are now Buffers internally
2013-11-26 17:46:19 -07:00
Danny Coates
6d42b2ae54
kA and wrapKb are now Buffers internally
2013-11-26 13:23:14 -07:00
Peter deHaan
ec5229c805
Fixing a few JSHint warnings in the /tests
2013-11-21 15:06:19 -08:00
Peter deHaan
34d57f8928
de-picling due to recent repo rename. A couple picl's remain, but I'll file separate bugs as they're less straight forward
2013-11-15 15:38:04 -08:00
Danny Coates
b518a59b42
added uid and verified to /session/create response
2013-11-11 17:42:27 -08:00
Ryan Kelly
5577f702c6
Change HKDF "info" parameter for some token derivations.
2013-11-08 12:18:47 +11:00
Ryan Kelly
543658751c
Treat Bundle like a top-level module, rather than using "Token.Bundle.*"
2013-11-08 09:48:17 +11:00
Ryan Kelly
a01523ecf5
Use a single srpServer instance per SrpToken.
...
This also saves a bit of work at construction time, by deferring
calculation of the B value until it is actually needed.
2013-11-08 09:48:17 +11:00
Ryan Kelly
317cdaf36b
Make SrpToken.prototype.tokenTypeID more consistent with other tokens
2013-11-08 09:48:17 +11:00
Ryan Kelly
6842786362
Simplify mocking of Date.now in forgot_password_token tests.
2013-11-08 09:48:17 +11:00
Ryan Kelly
fa467ebd91
Make Bundle module export a single constructor.
...
This makes it more consistent with how other modules do things, even
though we don't create any Bundle objects.
2013-11-08 09:48:17 +11:00
Ryan Kelly
c9a289e4f4
Make SrpToken more like all the other token classes.
2013-11-08 09:48:17 +11:00
Ryan Kelly
8b3665c8a5
Refactor token classes to reduce duplication, improve API compliance
...
This implements the latest tweaks to the token derivation/encrytion
scheme, and uses the new level of symmetry between operations to support
a substantial refactor and cleanup.
2013-11-08 09:48:17 +11:00
Danny Coates
7c63ecbbbd
fixed jshint complaints
2013-11-01 14:29:39 -07:00
Danny Coates
5c81b13c75
Merge branch 'srp2' into db
...
Conflicts:
bin/key_server.js
db/heap.js
db/mysql.js
package.json
tokens/srp_token.js
2013-10-29 15:13:35 -07:00
Danny Coates
224083222e
fixed tests deleted obsolete ones. need moar token tests
2013-10-29 13:48:21 -07:00
Danny Coates
a5e7653f3c
client works again with new db api
2013-10-29 13:47:00 -07:00
Danny Coates
d6d7903ab4
token.create should take a uid again
2013-10-29 13:47:00 -07:00
Danny Coates
b91396fff9
reorg. renamed models dir to tokens
2013-10-29 13:47:00 -07:00
Danny Coates
a41fe08538
updated to node-srp 0.2.0
2013-10-28 17:20:13 -07:00
Danny Coates
f59f012e98
fixed tests deleted obsolete ones. need moar token tests
2013-10-28 11:42:16 -07:00
Danny Coates
830833f8a1
client works again with new db api
2013-10-28 11:42:16 -07:00
Danny Coates
66336d81dd
token.create should take a uid again
2013-10-28 11:42:16 -07:00
Danny Coates
75da2b2737
reorg. renamed models dir to tokens
2013-10-28 11:42:16 -07:00
Danny Coates
7164bf1c21
reorganize files to hopefully be more sane
2013-07-25 17:15:38 -07:00
Danny Coates
cfc93a95a9
wip on client lib
2013-07-24 13:44:00 -07:00
Danny Coates
90a29f1c50
reordered api.md + random wip
2013-07-24 13:43:59 -07:00
Danny Coates
69c9c4dcbe
change everything, YOLO
2013-07-24 13:43:59 -07:00