Commit Graph

96 Commits

Author SHA1 Message Date
Sashko Stubailo
36da5aecb4 Make all version numbers not have rc 2014-10-13 14:09:37 -07:00
Sashko Stubailo
698fbedb10 Bump all of the version numbers to rc.0 2014-10-07 17:10:48 -07:00
Sashko Stubailo
1e53f6b598 Bump all version numbers again after cherry-picking unipackage fix 2014-10-01 17:06:57 -07:00
Sashko Stubailo
0129c3f5ac Bump all of the version numbers again, to republish with the unipackage.json fix 2014-10-01 15:43:05 -07:00
Sashko Stubailo
eecc272e4a Bump every single package version number due to a change in compilation 2014-09-29 23:44:50 -07:00
Paolo Scanferla
c62e3c20c1 Export same-origin check and end_of_redirect_response template.
Export some properties to allow developers to override them to
support logging in using the OAuth redirect flow from cross origin
domain.
2014-09-29 18:10:06 -07:00
Emily Stark
78d5969985 Make end-of-redirect response a blank page.
We think this is better than putting un-customizable, un-formattable
text. See #2625.
2014-09-23 14:38:22 -07:00
Emily Stark
833c6f5b4f Bump package versions for 0.9.2 2014-09-15 11:36:57 -07:00
Slava Kim
52d66644e9 Bump packages 2014-09-10 19:01:53 -07:00
Emily Stark
26eb9f0736 Only put credentials in hash fragment on Cordova.
I don't understand why, but setting `document.location.hash` in IE8
breaks Facebook login (and only Facebook login).
2014-09-10 11:22:12 -07:00
Emily Stark
f4e100dc14 Allow end-of-OAuth redirect URLs to be 127.0.0.1.
We were being too restrictive about validating our redirect at the end
of the OAuth redirect flow: 127.0.0.1 is okay even if ROOT_URL is
localhost.
2014-09-09 21:28:08 -07:00
Emily Stark
3f680f76a4 Bump package versions for 0.9.2-rc3 2014-09-09 11:11:38 -07:00
Emily Stark
8a8df1f89d Factor out 'base64' into its own package and use from 'oauth'.
'oauth' was using 'btoa', but it's not supported in IE8-9. We already
had a base64 implementation in 'ejson', so I factored it out into its
own package used by 'ejson' and 'oauth'.
2014-09-09 10:37:07 -07:00
Slava Kim
3decef135a Bump package versions 2014-09-05 17:55:37 -07:00
Emily Stark
e9f7f5a267 Fix sometimes-broken OAuth popup on iOS.
If you log in and out repeatedly, the popup would fail to close every few
times. My guess is that we can't close the OAuth popup while the last
navigation is still in progress.

Also clean up event listeners on popup exit.
2014-09-05 15:55:32 -07:00
Emily Stark
5faa9b4a90 Maintain back-compat for oauth redirect flow.
Older clients (such as the meteor tool) should be able to login with
OAuth at newer app servers.
2014-09-05 10:28:35 -07:00
Slava Kim
fc56f795d6 Bump versions of packages for the 0.9.2-rc0 2014-09-02 14:57:33 -07:00
Slava Kim
a6c4ed6e6e Merge branch 'release-0.9.1' into release-0.9.2
Conflicts:
	packages/autoupdate/package.js
	packages/meteor-tool/package.js
	packages/meteor/package.js
	scripts/admin/meteor-release-experimental.json
2014-09-02 13:49:21 -07:00
Avital Oliver
808c90e3db Bump rc versions on packages 2014-09-01 00:16:00 -07:00
Sashko Stubailo
82d1db5107 Rename Meteor.Collection to Mongo.Collection again 2014-08-29 12:28:32 -07:00
Sashko Stubailo
6b3d31ff5b Revert "Rename Meteor.Collection -> Mongo.Collection"
This reverts commit 96952dda2b.

Conflicts:
	packages/ddp/livedata_tests.js
	packages/minimongo/minimongo.js
	packages/mongo/collection.js
	packages/mongo/mongo_driver.js
	packages/mongo/mongo_livedata_tests.js
	packages/mongo/oplog_tests.js
	packages/reactive-dict/reactive-dict.js
	packages/session/session_tests.js
	tools/auth.js
2014-08-29 12:26:28 -07:00
Emily Stark
345d49f15a Merge branch 'cordova-hcp-oauth' into cordova-hcp
Conflicts:
	packages/oauth/package.js
	packages/standard-app-packages/package.js
2014-08-29 11:50:00 -07:00
Emily Stark
2de255f992 Code review comments from arbesfeld 2014-08-29 11:41:02 -07:00
Sashko Stubailo
96952dda2b Rename Meteor.Collection -> Mongo.Collection 2014-08-29 10:11:21 -07:00
Emily Stark
9ba7a6f117 Clean up OAuth redirect and Cordova flows.
* Be less XSS-able by HTML-encoding 'config' in the end-of-login
  responses and reading it out of the DOM.
* Thread 'isCordova' through to end-of-login responses. Trying to do a
  'window.close' in Cordova, even in a try/catch, breaks the in-app
  browser.
* Remove some stray 'console.log's.
2014-08-28 21:37:52 -07:00
Matthew Arbesfeld
ef25e736d5 wip towards oauth 2014-08-28 17:25:13 -07:00
Andrew Wilcox
2fd00e58ba Implements the "redirect" login flow, for cases such as using a mobile
UIWebView which aren't able to use the preferred "popup" login flow.

See the specs for details:
  https://meteor.hackpad.com/OAuth-redirect-flow-spec-PeziTcaNPDP
  https://meteor.hackpad.com/OAuth-redirect-flow-part-II-vswwUKP4vXe

I extracted code to construct a URL from the `http` package into a new
`url` utility package.  The new package has no public API, it simply
has the original URL construction functions that were in `http` and
makes them available to oauth.

Fixes the Meetup account login, as Meetup now requires using
"https://api.meetup.com/2/members" instead of
"https://secure.meetup.com/2/members".

The `?close` parameter for the redirect URI is now not needed or used.
For backwards compatibility the `?close` parameter is included if the
login service configuration doesn't include the `loginStyle` field
(indicating it was created using old code).
2014-08-28 17:25:13 -07:00
Sashko Stubailo
d3d7f0478f Replace references to mongo-livedata with mongo 2014-08-28 11:32:24 -07:00
David Glasser
26006d53dc Merge branch 'devel' into packaging
Conflicts:
	tools/utils.js
2014-07-30 17:40:44 -07:00
Emily Stark
1b866b729d Try window.opener first in OAuth popup, then localStorage.
We've occasionally seen weird configurations of IE where localStorage
isn't shared between same-origin windows, so trying window.opener first
is safer.
2014-07-25 17:24:32 -07:00
Emily Stark
c715613e48 Add sketchy fallback for flaky window.close() in OAuth popup.
Using an onerror event handler looks like the only semi-reliable way to
be able to close the popup in iOS Chrome, even though it's almost
certainly a bug that this works. We'll replace it soon with
redirect-based OAuth.
2014-07-25 14:11:39 -07:00
David Glasser
996d347139 Merge branch 'devel' into packaging
Conflicts:
	docs/client/api.html
	docs/client/concepts.html
	docs/client/introduction.html
	meteor
	packages/html-tools/package.js
	packages/spacebars-common/package.js
	packages/webapp/webapp_server.js
	tools/bundler.js
2014-07-21 16:18:25 -07:00
Emily Stark
d3eae5a2e8 Make a trivial change to oauth to force new package version.
Linux build of rc0's oauth package seems to have disappeared from s3, so
forcing a new oauth version to be published.
2014-07-20 21:16:33 -07:00
Emily Stark
8236854736 Use window.opener in OAuth flow only when localStorage doesn't work.
Move OAuth._endOfLoginResponse HTML/JS into asset instead of piecing it
together inline.

Fixes #2302.
2014-07-14 14:58:07 -07:00
Emily Stark
a186c961cf Add semicolon to OAuth end-of-login response 2014-07-11 16:18:41 -07:00
ekatek
b9a714f028 ripping out internal, name and test from package.js files 2014-07-07 20:50:50 -07:00
ekatek
fb709c9563 remove versions files from core packages 2014-06-16 22:11:31 -07:00
David Glasser
c5e5305a3b Merge branch 'devel' into packaging
Conflicts:
	tools/bundler.js
	tools/packages.js
2014-06-11 12:02:57 -07:00
ducdigital
3dfcb42eac Move credential token and secret into variables.
Allow 3rd party apps, like PhoneGap/Cordova, to execute inline script
and get the token and secret key easier.
2014-06-03 09:58:39 -07:00
Emily Stark
9c5764fc83 Add a missing return 2014-05-29 10:02:09 -07:00
Emily Stark
4436cc4ad1 Nick comments 2014-05-29 10:00:11 -07:00
Emily Stark
33ddc92ffc Change _endOfLoginResponse signature.
The main changes are:
* The `isSafe` check happens before _endOfLoginResponse is called. If
  _endOfLoginResponse gets a credential token/secret, then the values
  are safe to include in HTML.
* _endOfLoginResponse gets a little more information about the request
  (like the query string, and a string or Error describing any error
  that occurred).
* We preserve the <=0.8.1.3 behavior where you have to pass ?close in
  the query parameter to get the popup to be closed at the end of the
  OAuth flow.
2014-05-28 21:03:51 -07:00
Emily Stark
bec17a6ccb Remove dead ?redirect OAuth flow.
This code has never worked without some fairly serious client-side
surgery, and it now especially doesn't work because it doesn't
communicate the credentialSecret back to the app. Rather than leave an
untested, unQA-ed code path in core, apps that are using the ?redirect
flow can just override `OAuth._endOfLoginResponse` to do the redirect
themselves.
2014-05-28 21:03:50 -07:00
Emily Stark
c827d00c11 Nick's comments 2014-05-28 21:03:50 -07:00
Emily Stark
cfa29769e0 Rename closePopup to OAuth._endOfLoginResponse. 2014-05-28 21:03:50 -07:00
David Glasser
e4000c6808 Merge branch 'devel' into packaging
Conflicts (around utils.quotemeta):
	tools/packages.js
	tools/utils.js
2014-05-12 17:06:11 -07:00
Emily Stark
758a2d260e Add an XXX about only_credential_secret_for_test 2014-05-12 13:53:38 -07:00
ekatek
beb0e59b9d new version files from teh new solver? Also, package.js correct with tests 2014-05-09 17:36:25 -07:00
ekatek
031890d2c5 don't store buildtime deps in the catalog 2014-05-04 16:56:58 -07:00
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.
2014-04-30 10:08:16 -07:00