Commit Graph

7362 Commits

Author SHA1 Message Date
Emily Stark
cb6113170f Generate a fresh secret at end of OAuth, and require that secret on login.
Ensures that only the user who completed the OAuth flow can log in over DDP.
release/0.8.1-rc3 release/0.8.1
2014-04-30 10:08:16 -07:00
Emily Stark
bea8e9c5d0 Add showdown version in History 2014-04-29 23:26:35 -07:00
Emily Stark
2ee6fa383c Update license file more 2014-04-29 23:25:43 -07:00
Emily Stark
9b6d020e91 Update license file 2014-04-29 23:24:52 -07:00
Emily Stark
30b937365f Use Random.id() for meetup state parameter.
For some reason meetup converts underscores to spaces in the state
parameter.
2014-04-29 19:56:11 -07:00
David Glasser
e7f955f809 Fix accidental QUERYING->STEADY transition
Fixes "Exception in defer callback: Error: Phase unexpectedly STEADY"
error
release/0.8.1-rc2
2014-04-29 15:00:55 -07:00
David Glasser
2b8f2cc566 Handle token observe better with overlapping login
Before this, we could see the "non-null user observe" error if:

- One login method ran (eg login) and it called _setLoginToken.
  It stored null in userObservesForConnections and gets to the
  defer/observe part
- Another login method ran (eg getNewToken) and it called
  _setLoginToken. The call to removeTokenFromConnection at the top
  clears the null from userObservesForConnections, and it then
  stores its own null in userObservesForConnections, and defers
- One of them finishes the observe and puts its observe in
  userObservesForConnections, overwriting the null which it thinks
  is its alone
- The other one gets there and throws

Also, consistently use _.has when checking if userObservesForConnections
has an element.
2014-04-29 14:30:34 -07:00
Avital Oliver
9ab335baff Fix consistent id tests on IE8
IE8 doesn't support `func.name`
2014-04-29 13:59:51 -07:00
Emily Stark
31a9b47bc6 Don't set img tags to javascript: URLs in tests in IE.
IE throws an exception if you set an img src to a javascript: URL.
2014-04-28 20:51:49 -07:00
Emily Stark
8b634a96f9 Wait for sub ready on another mongo-livedata test 2014-04-28 16:23:42 -07:00
Avital Oliver
2fdae0f132 Wait for subscription ready on another mongo livedata test 2014-04-28 16:11:53 -07:00
Emily Stark
6ce2c131d3 Fix some mongo-livedata tests 2014-04-28 16:04:50 -07:00
Avital Oliver
5a646fe796 Work towards better mongo-livedata tests.
We should always wait for subscription to be ready
before calling methods if we expect to be able to read
the database within a method callback
2014-04-28 16:03:55 -07:00
Avital Oliver
d45414154d Simplify mongo-livedata id generation tests 2014-04-28 13:54:08 -07:00
Avital Oliver
e48a3e557f Fix IE8 "table assembly" test failure.
We no longer automatically wrap table elements in
a <tbody>.
2014-04-28 12:17:00 -07:00
Emily Stark
0a5297d39b Bump a test timeout 2014-04-26 14:46:32 -07:00
David Glasser
406e3de77e expand DDP heartbeat section in History 2014-04-25 19:02:12 -07:00
Avital Oliver
dd7d8fea60 Fix consistent id tests.
We now wait for subscriptions to be ready before calling
methods that affect those collections. Otherwise, when the
callback fires the documents in those collections aren't
guaranteed to be available on the client.
2014-04-25 18:54:52 -07:00
Avital Oliver
e4c17ef07b Isolate consistent id generation tests 2014-04-25 18:50:16 -07:00
David Greenspan
788b5254fb Address Blaze XXXs in History.md 2014-04-24 22:00:20 -07:00
Emily Stark
9b41237f69 One last little tweak to javascript: error message release/0.8.1-rc1 2014-04-24 18:58:41 -07:00
Emily Stark
ff7fc769d9 Tweak javascript: attribute value error message. 2014-04-24 18:55:54 -07:00
Avital Oliver
4ada4d4963 Another pass at History.md 2014-04-24 17:48:51 -07:00
Emily Stark
7e6366c481 History tweak 2014-04-24 17:45:01 -07:00
Emily Stark
ef2412dcec Suppress logs on javascript: attribute tests 2014-04-24 17:45:01 -07:00
Avital Oliver
239ad55068 Another pass at History.md 2014-04-24 17:34:02 -07:00
Emily Stark
6b67cd0449 Catch errors in _storePendingCredential to avoid crashing runner 2014-04-24 16:33:11 -07:00
Emily Stark
42a65d0763 History tweaks 2014-04-24 15:31:31 -07:00
Emily Stark
bdcbe7fd4d Update History contributors list 2014-04-24 15:30:05 -07:00
David Glasser
c35593c574 Improve documentation of Meteor.settings
Fixes #2005.
2014-04-24 14:13:05 -07:00
David Glasser
4777e64336 Don't pass server-generated _id to allow/deny
This lets you still use C.insert from the client but reject arbitrary
client-set _id's (as opposed to _id's generated using the Random.id()
algorithm with a client-determined _id).

If you don't want clients to be able to have any control over the _id at
all for inserts, then you'll have to forbid all direct inserts and use
your own methods which explicitly do `C.insert({_id: Random.id(), ...})`

Note that allow/deny rules with transforms still see an _id, because
transforms need to have (and preserve) _id.  This means that if you
really want to see the server-generated _id, you can just specify an
identity transform for your allow/deny rule.
2014-04-24 14:01:39 -07:00
David Glasser
41b5b95b38 testAsyncMulti: Include block index in failures 2014-04-24 14:01:34 -07:00
emgee3
cbd55698fd Add collapsing TOC to Meteor Docs
On small devices (< 768 px) make the Table of Contents hide by default.
2014-04-24 13:45:55 -07:00
Emily Stark
9fb63da3c7 Handle unexpected keys for pending OAuth credentials.
Duplicate keys aren't expected, but in case something weird happens,
just override the previous information associated with that key. We
simply insert nothing for non-string keys (e.g. an OAuth flow with no
`state` parameter, which should never happen normally).
2014-04-24 10:06:39 -07:00
Nick Martin
682dd7895a Merge PR 2081 into devel 2014-04-23 19:37:31 -07:00
Nick Martin
a496fcab4c one more comment. 2014-04-23 19:37:03 -07:00
Andrew Wilcox
ab08191ac3 Allow validate login hook to override error from beginPasswordExchange
Fixes #2058
2014-04-23 19:37:03 -07:00
Justin SB
47b022841b Generalize reproducible inserted ID generation
For example, calling `insert` inside a method body will now return
consistent IDs on the client and the server, and latency compensation
will work properly instead of producing flicker.

Code that wants a random stream that is consistent between method stub
and real method execution can get one with `DDP.randomStream`.
2014-04-23 16:05:32 -07:00
David Glasser
d7a4e65226 rough draft of History update for 0.8.1 2014-04-23 12:53:12 -07:00
Avital Oliver
471f09cbce Oops. The test shouldn't throw errors on the server. 2014-04-22 21:39:46 -07:00
Avital Oliver
3ad2a70a03 Truncate HTTP errors at 500 characters, not 180.
I hit this personally with a misconfigured OAuth service and
I couldn't diagnose the problem due to the message being too
short.
2014-04-22 21:29:32 -07:00
David Glasser
a8869d07ec Provide a better error if ROOT_URL is not an URL
Fixes #1404.
2014-04-22 15:52:52 -07:00
Emily Stark
fe13c30bfd Merge branch 'awwx-oauth-encryption' into devel 2014-04-22 11:56:37 -07:00
Emily Stark
326180ce0a Oauth -> OAuth 2014-04-22 11:44:13 -07:00
Emily Stark
20f2ec4226 Add OAuth token encryption to pending token collections 2014-04-22 11:41:55 -07:00
Emily Stark
55363a9b86 Merge remote-tracking branch 'origin/devel' into awwx-oauth-encryption
Conflicts:
	History.md
	packages/facebook/facebook_client.js
	packages/github/github_client.js
	packages/google/google_client.js
	packages/meetup/meetup_client.js
	packages/meteor-developer/meteor_developer_client.js
	packages/twitter/twitter_client.js
	packages/weibo/weibo_client.js
2014-04-22 11:31:31 -07:00
Emily Stark
739cb078f7 Add a couple more oauth encryption tests 2014-04-22 11:24:06 -07:00
Emily Stark
24e42e715b Remove Meteor._printDecryptionFailures.
We can add it back in if users want it; for now it makes me nervous.
2014-04-22 11:23:34 -07:00
Emily Stark
54f6d3654a Move userId out of AAD and into plaintext.
We want to maintain compatibility with the node crypto module, which
doesn't currently have an interface for specifying AAD.
2014-04-22 10:28:27 -07:00
Emily Stark
93cf643c0f Merge branch 'href-attr-handler' into devel 2014-04-22 09:45:15 -07:00