Commit Graph

57 Commits

Author SHA1 Message Date
Alex Kwan
317a2fe56f fix spacing again 2016-02-17 13:13:20 +08:00
Alex Kwan
c5efcac8e0 fix spacing 2016-02-17 12:53:17 +08:00
Alex Kwan
a7093d33bb fix multiple include 2016-02-15 20:14:50 +08:00
Peter J. Shin
9248f9af6d Fixing comment. 2016-02-12 17:05:57 -08:00
Fosco Marotto
2a200fc718 Merge pull request #373 from flessard/session-token
Fix : Session token issue
2016-02-12 13:08:38 -08:00
Francis Lessard
66efd0d030 Rebase 2016-02-12 15:57:37 -05:00
Francis Lessard
175d16afdc Merge branch 'master' into session-token
# Conflicts:
#	src/users.js
2016-02-12 15:53:38 -05:00
Fosco Marotto
fb44bbe439 Merge pull request #338 from steven-supersolid/installationId
Bugfix: Expose installationId in Cloud Code request object
2016-02-12 12:28:32 -08: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
Peter J. Shin
23c12846af Merge pull request #243 from ParsePlatform/peterjs.logs
Logs support.
2016-02-12 10:21:43 -08:00
Peter Shin
dc4859f561 Logs support.
Added /logs endpoint with basic logger and LoggerAdapter.
2016-02-12 08:21:30 -08:00
Nikita Lutsenko
9dfc013363 Merge pull request #377 from ParsePlatform/nlutsenko.router.roles
Refactor and deduplicate RolesRouter, fix missing query on /roles.
2016-02-11 23:38:18 -08:00
Nikita Lutsenko
6c6021a5cd Merge pull request #378 from ParsePlatform/nlutsenko.middleware.master
Add enforceMasterKeyAccess middleware.
2016-02-11 23:33:39 -08:00
Nikita Lutsenko
62e671dd9e Refactor and deduplicate RolesRouter, fix missing query on /roles. 2016-02-11 23:27:54 -08:00
Nikita Lutsenko
f53cb60d57 Add enforceMasterKeyAccess middleware. 2016-02-11 23:26:44 -08:00
Nikita Lutsenko
b2570a9af8 Update style in InstallationsRouter. 2016-02-11 23:17:38 -08:00
Nikita Lutsenko
99ac6c1161 Refactor and deduplicate logic in SessionsRouter. 2016-02-11 23:17:38 -08:00
Nikita Lutsenko
ab841b5ab4 Refactor and deduplicate logic in UsersRouter. 2016-02-11 23:17:38 -08:00
Wes Thomas
a75376523c file DELETE support 2016-02-11 21:21:42 -05:00
Francis Lessard
90a4ac70ac Fix session token issue
In _User collection a field _session_token is present and if you fetch
the user data form server, this field override the sessionToken saved
in your browser.

If you don't fetch the user, all request to server contain the right
sessionToken and if you fetch the user data from the server, all next
requests will contain the wrong sessionToken come form the
_session_token in user data fetched.
2016-02-11 20:32:31 -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
Nikita Lutsenko
6a127447ad Cleanup duplicate logic and refactor installations.js into InstallationsRouter. 2016-02-11 13:50:48 -08:00
Nikita Lutsenko
1f660d9f7c Restructure ClassesRouter as a class. 2016-02-11 13:41:06 -08:00
wangmengyan95
273a20767b Change APNS multiple certs handling 2016-02-11 12:28:45 -08:00
wangmengyan95
06b1ee2362 Make push follow controller and adapter style 2016-02-11 02:56:52 -08:00
wangmengyan95
6afaeb808b Add support for push 2016-02-11 02:54:34 -08:00
Drew
5fb015ef7a Merge pull request #283 from theill/master
Implementing GET /config and POST /config support
2016-02-10 18:34:44 -08:00
Drew
6294162449 Merge pull request #353 from drew-gross/delete-field
Delete field function in Schema.js
2016-02-10 18:30:47 -08:00
Fosco Marotto
8d89838afb Merge pull request #254 from ParsePlatform/fosco.logout
Removed extra /logout handler
2016-02-10 16:52:30 -08:00
Peter Theill
1d576bcc9f Update tests and ensure tests are run regardless of exp flag 2016-02-11 01:32:38 +01:00
Drew Gross
92e9db9064 Fix comment 2016-02-10 16:31:07 -08:00
Drew Gross
747f278f2a Enable deleting pointer fields, fix tests 2016-02-10 16:25:28 -08:00
Peter Theill
930573bb47 Update PUT response to align with current dashboard 2016-02-11 01:10:09 +01:00
Peter Theill
19777699c9 Rearrange methods to follow route setup 2016-02-11 01:07:49 +01:00
Peter Theill
fb6af2cfa0 Hide /config behind PARSE_EXPERIMENTAL_CONFIG_ENABLED flag 2016-02-11 01:06:25 +01:00
Peter Theill
ba68a7969e Merge remote-tracking branch 'github/master' 2016-02-11 00:44:13 +01:00
Fosco Marotto
dee640c7d0 Added logout test and fixed error in restwrite 2016-02-10 14:52:42 -08:00
Drew Gross
0a0d4f65ef Finish implementation of delete field from schema 2016-02-10 14:12:27 -08:00
Drew Gross
b0c4b8f6ce Drop _Join collection when deleting a relation field 2016-02-10 14:12:27 -08:00
Drew Gross
f07836e33f Add validation of deleteField function 2016-02-10 14:12:27 -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
steven-supersolid
4ddaac36bb Expose installationId to Cloud Code request from req.info 2016-02-10 16:04:13 +00:00
Nikita Lutsenko
07c9c1d648 Cleanup and modernize S3Adapter to ES6 syntax. 2016-02-09 21:48:05 -08:00
Nikita Lutsenko
053ac990e6 Fixed missing url for files on user login. 2016-02-09 19:31:50 -08:00
Nikita Lutsenko
8ca25cbabe Moved getting the url for every file from RestQuery into FilesController. 2016-02-09 19:31:29 -08:00
Fosco Marotto
ab12ff76b8 Updated logout handling per review. 2016-02-09 15:55:43 -08:00
Nikita Lutsenko
3072782574 Merge pull request #330 from ParsePlatform/nlutsenko.es6.adapters
Refactor files.js into FilesController.
2016-02-09 15:02:13 -08:00
Nikita Lutsenko
53b2d4e176 Refactor files.js into FilesController. 2016-02-09 14:38:34 -08:00
ksaldana1
4f128d761e Implemented ES6 default parameters where valid in ExportAdapter and RestQuery 2016-02-09 15:47:13 -06:00
Fosco Marotto
c4be51d734 Removed extra /logout handler 2016-02-09 10:43:27 -08:00