Commit Graph

44 Commits

Author SHA1 Message Date
Florent Vilmart
3ecaa0aa4b Sends verification email upon set and update email
- nits
2016-02-29 18:58:34 -05:00
Florent Vilmart
91d9724182 Adds reset password logic 2016-02-29 18:55:15 -05:00
Fosco Marotto
d9f1e00345 Merge pull request #702 from simonbengtsson/before-save-login
Don't trigger beforeSave when logging in with a provider
2016-02-29 14:40:22 -08:00
Fosco Marotto
04491fcb20 Merge pull request #673 from stephentuso/installation-handling-fix
Handle duplicate android device tokens correctly
2016-02-29 14:37:24 -08:00
Simon Bengtsson
6cafd46d06 Validate authData before triggering beforeSave 2016-02-27 15:54:43 +01:00
Marco129
c359d0fb5f Allow create system class even allowClientClassCreation option is false 2016-02-27 15:37:34 +08:00
stephentuso
02b56def6d Merge branch 'android-installation-duplicate-token-test' into installation-handling-fix 2016-02-26 21:10:14 -05:00
stephentuso
c9d4f7693d Should pass tests now 2016-02-26 19:42:47 -05:00
Drew
ca9b750993 Merge pull request #684 from Marco129/client-class-creation
Add allowClientClassCreation option
2016-02-26 11:46:50 -08:00
Marco129
97489106b4 Add allowClientClassCreation option 2016-02-26 23:08:20 +08:00
Fosco Marotto
1b83d9c621 Fix for #413 - support empty authData on signup 2016-02-26 05:05:15 -08:00
stephentuso
7ca8836768 Treat objectId and installationId matches the same when handling Installation writes 2016-02-26 00:55:36 -05:00
Nikita Lutsenko
5e4cecd94e Use constants instead of magic strings for trigger names. 2016-02-25 20:01:52 -08:00
Florent Vilmart
c4abd1e267 cache as ES6 2016-02-25 08:10:08 -05:00
Florent Vilmart
9ac7a52e40 Adds Hooks API
Adds Parse.Hooks.js in src/cloud-code/Parse.Hooks.js
Moves Cloud code related functions in src/cloud-code
2016-02-25 08:10:07 -05:00
Nikita Lutsenko
9d342a8aee Fix missing file URL for short-circuited _User in RestWrite. 2016-02-24 15:18:40 -08:00
Nikita Lutsenko
ae82f33118 Inflate all data as dirty for new ParseObject in beforeSave. 2016-02-24 01:24:16 -08:00
Nikita Lutsenko
b477d16992 Do not do any setup for beforeSave trigger if none is set for this className. 2016-02-24 01:24:15 -08:00
Nikita Lutsenko
14cc82a057 Fix dirtyKeys() and dirty(key:) on beforeSave when updating objects. 2016-02-23 21:50:17 -08:00
Nikita Lutsenko
be693fb736 Do not pass objectId, updatedAt, createdAt to beforeSave hooks on object create. 2016-02-22 19:33:32 -08:00
Nikita Lutsenko
78c5292bc3 Merge pull request #515 from flovilmart/receipt-validation
Adds receipt validation endpoint
2016-02-19 17:41:16 -08:00
Florent Vilmart
6e55e59b86 Fix typo,
- Adds automatic downloadName to match original Parse API
2016-02-19 14:07:12 -05:00
Florent Vilmart
9c477907bf Adds receipt validation endpoint 2016-02-19 13:06:02 -05:00
Francis Lessard
5de33ac226 Fix : save whit masterKey cause object not found. 2016-02-18 13:29:26 -05:00
Francis Lessard
67c7670437 Merge remote-tracking branch 'ParsePlatform/master' into user-roles 2016-02-18 10:06:12 -05:00
Florent Vilmart
e010fd82f2 Generic OAuth provider support
Refactors facebook login into oauth generic login

Adds additional oauth2 providers

adds ability to pass an oAuth validator in the config

Adds Twitter validation support + OAuth 1 client

Support auth_token instead of access_token for twitter

Improves code coverage of OAuth

Adds validation of oauth provider structures

Better coverage of the OAuth spec

100% coverage of OAuth1.js

Adds passing auth_token_secret for Twitter auth.

Refactors auth validation methods to include authData parameter

- Adds ability to extens oauth validator through configuration
- Adds ability to extend oauth validator through external module (file or package)
- Adds more tests
- Adds tests to login with custom auth provider

Adds more tests for REST API

fixes twitter auth_token

f
2016-02-17 08:06:30 -05:00
Drew
680830451f Merge pull request #440 from flovilmart/flovilmart.enable-anon-users
Adds ability to disable anonymous users
2016-02-16 15:02:20 -08:00
Francis Lessard
176f1b9085 Merge remote-tracking branch 'ParsePlatform/master' into user-roles 2016-02-16 16:34:55 -05:00
Fosco Marotto
b1a9536cc6 Merge pull request #438 from flovilmart/flovilmart.fix-default_User.metadata
Adds locked down ACL on _User
2016-02-16 08:11:21 -08:00
Francis Lessard
5a167a9a46 Merge remote-tracking branch 'ParsePlatform/master' into user-roles 2016-02-16 10:46:05 -05:00
Francis Lessard
5b40a589c0 Remove public ACL set by default. 2016-02-16 10:45:43 -05:00
Fosco Marotto
5856ed0b00 Merge pull request #430 from flovilmart/clear-sessions
Fixes Parse.User.become / clears session on password change
2016-02-16 05:04:51 -08:00
Florent Vilmart
c0bd5d2036 adds ability to disable anonymous users 2016-02-15 22:44:50 -05:00
Florent Vilmart
20eca71a6f Adds locked down ACL on _User 2016-02-15 21:23:17 -05:00
Florent Vilmart
ea07eb506d Clears session on password change
- Fixes error type when passing an invalid session token
2016-02-15 10:15:47 -05:00
George Deglin
a1b24da3e7 WIP Add OneSignal Adapter 2016-02-12 18:32:39 -08:00
Francis Lessard
220a13392d no message 2016-02-12 16:32:45 -05:00
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