Avital Oliver
9db26049d1
First test for accounts. Verify that an old bug is fixed
2012-07-23 17:57:11 -07:00
Avital Oliver
e71a8c8e9c
Added insecure package to examples
2012-07-23 17:57:11 -07:00
Avital Oliver
b227d59b54
Access control for default collection mutators
...
- A new `insecure` package reproduces the experience we had
before this change, in which all collections are by default
totally open to all changes
- With or without the `insecure` package, you can now call
collection.allow() to define which calls to the default
mutator methods should be allowed
2012-07-23 17:57:11 -07:00
Nick Martin
0e31087c54
Optimistically log us in from local storage at page load.
2012-07-23 17:57:11 -07:00
Nick Martin
f963e1251a
Use new handlebars feature to simply template.
2012-07-23 17:57:11 -07:00
Avital Oliver
576a0f5fdc
Fix bug with matching google and facebook users
2012-07-23 17:57:11 -07:00
Nick Martin
e99f3519cc
Add on success callback to Meteor.logout.
2012-07-23 17:57:11 -07:00
Nick Martin
dd48fbcbc2
Strings tweak.
2012-07-23 17:57:11 -07:00
Nick Martin
7071f94774
Add access control to todos.
2012-07-23 17:57:11 -07:00
Nick Martin
630ee42242
CSS cleanup.
2012-07-23 17:57:11 -07:00
Nick Martin
efc9fe0b9f
Cleanup sample files with service configuration.
2012-07-23 17:57:11 -07:00
Nick Martin
490e7a29e7
Rename oauth2 package to accounts-oauth2-helper.
2012-07-23 17:57:11 -07:00
Avital Oliver
f018551e97
Renamed login_buttons_image.css
2012-07-23 17:57:11 -07:00
Avital Oliver
4a8542e630
Improve local storage mechanism for login tokens
2012-07-23 17:57:11 -07:00
Avital Oliver
aeb733b3e3
A variety of improvements to the accounts packages
2012-07-23 17:57:10 -07:00
Avital Oliver
a73715491b
Better interface for OAuth2 login services + more cleanup
2012-07-23 17:57:10 -07:00
Nick Martin
0d886d6c24
Change {{user}} to {{currentUser}}
2012-07-23 17:57:10 -07:00
Nick Martin
44751cebc5
Clean up users autopublish.
...
Users table suppresses private fields when autopublished. Current user published turned into automatic publish, so the warning about the autopublish package is suppressed.
2012-07-23 17:57:10 -07:00
Nick Martin
0b1708d9fc
Send all of user except services and private (instead of only name and email)
2012-07-23 17:57:10 -07:00
Nick Martin
6e0276fb73
CSS and string tweaks to login buttons.
2012-07-23 17:57:10 -07:00
Nick Martin
e421762307
Rename login-buttons package to accounts-ui. Rename login_buttons template to loginButtons.
2012-07-23 17:57:10 -07:00
Avital Oliver
1fed5b43aa
Fixed bug in Meteor.accounts.updateOrCreateUser
2012-07-23 17:57:10 -07:00
Nick Martin
c1a399dc38
Add images and beautify login buttons.
2012-07-23 17:57:10 -07:00
Nick Martin
bbf10bdd14
Make the login buttons template detect and react to which accounts packages are enabled.
2012-07-23 17:57:10 -07:00
Avital Oliver
9e369b9604
Store username and display in login-buttons
2012-07-23 17:57:10 -07:00
Nick Martin
2657787fd7
Move login button code from todos into new login buttons package.
2012-07-23 17:57:10 -07:00
Avital Oliver
2fc45793ee
Support for Google login + refactor of accounts packages
...
Break up the accounts package into accounts, accounts-facebook, oauth2.
2012-07-23 17:57:10 -07:00
Avital Oliver
d6bc56d255
New oauth login flow
...
Also, some code reorganization and bugfix for IE7
2012-07-23 17:57:10 -07:00
Nick Martin
24ca78cb5d
Add callback to be called on success (but not on failure).
2012-07-23 17:57:10 -07:00
Avital Oliver
c00f2e3551
Auth/Accounts improvements
...
- Store login token in local storage so that we log in across tabs
- Simulate local storage on IE 7 using userData
- Expose a {{user}} helper to Handlerbars
- Poll the FB popup so that we know when the user closed it
(still without the new design around this)
- Support logout
- Slightly better error handling (but should still get better)
- Support non-autopublishing collections, and make loginTokens such a collection
2012-07-23 17:57:10 -07:00
Avital Oliver
10654b997a
Preliminary support for user accounts in Todos
2012-07-23 17:57:10 -07:00
Avital Oliver
f8a0d5a95c
First pass at an account system backed by Facebook using OAuth
2012-07-23 17:57:09 -07:00
Avital Oliver
301a339eef
Unbreak reloading app when code changes
2012-07-23 17:57:09 -07:00
Avital Oliver
4d257aa545
Improve test for subscriptions on userid change
...
The test service's subscriptions now have some data overlap
for different users, verify that we indeed diff the query results
correctly.
2012-07-23 17:57:09 -07:00
Avital Oliver
3a26b18a3f
Expose userId/setUserId to method calls on the server.
...
When calling setUserId all subscriptions are rerun.
2012-07-23 17:57:09 -07:00
Avital Oliver
f1acf247bf
Initial code necessary to rerun subscriptions on user id changing
2012-07-23 17:57:09 -07:00
Avital Oliver
414f5e52fb
Minor doc changes
2012-07-23 17:57:09 -07:00
Avital Oliver
cc3a163db6
Call onReconnect when a LivedataConnection reconnects
...
This can be used to re-establish the proper auth context.
2012-07-23 17:57:09 -07:00
Avital Oliver
55b6bb0dea
Method calls can now be forced to wait
...
Meteor.apply and Meteor._LivedataConnection.apply now receive an options
parameter which can be used to set the `wait` flag:
(Client only) If true, don't send any subsequent method calls until this
one is completed. Only run the callback for this method once all previous
method calls have completed.
2012-07-23 17:57:09 -07:00
Avital Oliver
b7c393a9fe
Add a reactive userId on LivedataConnection
...
This is preliminary work towards an auth system
2012-07-23 17:57:09 -07:00
David Greenspan
2e2ee29056
porting GC logic to livedocument
2012-07-23 16:30:28 -07:00
David Greenspan
14ced70720
first cut of annotate/materialize
2012-07-23 15:57:38 -07:00
Avital Oliver
a2d5bfa6db
Allow packages to hook in before app html serving. Cherry picked from auth branch.
2012-07-20 19:35:48 -07:00
David Greenspan
7ad1f5eff3
tests exploring branch keys; ReactiveVar helper; start of 'constant' helper
2012-07-18 10:16:09 -07:00
David Greenspan
ac06cbb4b6
typo in error msg
2012-07-17 20:23:33 -07:00
David Greenspan
41bfedafe2
comments
2012-07-17 15:14:54 -07:00
David Greenspan
70ca9b98c8
more tests
2012-07-17 13:46:31 -07:00
David Greenspan
5855c9fcf4
beginning of branch key tests
2012-07-17 13:46:31 -07:00
David Greenspan
bc8a76c8f3
remove "debugger"
2012-07-17 13:46:30 -07:00
David Greenspan
9ea0b8d950
comments
2012-07-17 13:46:30 -07:00