Commit Graph

7 Commits

Author SHA1 Message Date
Francis Lessard
d7d87a31f0 Merge remote-tracking branch 'ParsePlatform/master' into user-roles 2016-02-12 16:16:20 -05:00
Dmitry Chestnykh
62cbc451aa Generate tokens and ids with cryptoUtils module.
Move object ID, token, and random string generation into their own
module, cryptoUtils.

Remove hat dependency, which was used to generate session and some other
tokens, because it  used non-cryptographic random number generator.
Replace it with the cryptographically secure one. The result has the
same format (32-character hex string, 128 bits of entropy).

Remove randomstring dependency, as we already have this functionality.

Add tests.
2016-02-12 21:16:50 +01:00
Francis Lessard
42aacdf62b FIX : User Roles not added to create, update or delete calls 2016-02-11 22:16:07 -05:00
Drew
c66cc8d7bc Merge pull request #341 from steven-supersolid/anonymous
Bugfix: set username to random string if missing in RestWrite
2016-02-11 15:44:34 -08:00
Fosco Marotto
dee640c7d0 Added logout test and fixed error in restwrite 2016-02-10 14:52:42 -08:00
steven-supersolid
38b8b6e2e0 Repurpose newObjectId as more general id generating function. Set username to random string if missing 2016-02-10 17:41:04 +00:00
Nikita Lutsenko
b989bbcaae Move all source files into 'src' folder. 2016-02-08 19:41:07 -08:00