David Glasser
57104f6a8d
Better error handling around a method call
...
- Make sure not to double-resolve a future (using two different
techniques!)
- Try/finally cleanup some resources
2014-03-05 13:32:31 -08:00
Emily Stark
89b1a73002
Make options optional on pollForRegistrationCompletion
2014-02-19 23:43:18 -08:00
Emily Stark
857b4e0a4c
Merge branch 'meteor-accounts-ux-pass' of github.com:meteor/meteor into meteor-accounts-ux-pass
2014-02-19 19:37:12 -08:00
Emily Stark
829dfdac68
Don't log out an invalid session immediately before deploy.
...
When we deploy:
* If we are logged in with a username, then we go straight to doing the
actual deploy.
* If we are logged in without a username, we check if we have a username
yet. If we have an invalid credential at this point, we do NOT want
`pollForRegistrationComplete` to wipe our session file, because we
already passed the point at which we handle the case of the user being
logged out. Instead, we just want to continue with the deploy and let
the deploy server handle the expired credential. (This case, where a
user's credential has been expired before they set a username,
shouldn't happen too often in real life.)
* If we deploy with an invalid credential, we get an "Expired
credential" message.
2014-02-19 19:35:19 -08:00
Geoff Schmidt
32ad71e50e
Improve email-in-use flow
2014-02-19 16:24:16 -08:00
Emily Stark
c8e75d9afc
Use fut.isResolved() instead of a separate 'resolved' variable.
...
Add test for 'meteor whoami' after setting username but before logging
in again.
2014-02-19 14:46:28 -08:00
Geoff Schmidt
d1d714ec66
'whoami' gracefully handles revocation of a credential
...
on a passwordless account. with test
2014-02-18 17:25:19 -08:00
Geoff Schmidt
96e3273f28
make account setup link even more handy
2014-02-18 15:43:55 -08:00
Geoff Schmidt
97d2264a3a
Fix a "Future resolved more than once" error
2014-02-18 15:38:26 -08:00
Geoff Schmidt
bee4fbbd24
Reprompt if they enter a blank username to logs or mongo. With test.
2014-02-18 14:48:29 -08:00
Emily Stark
553bf14c78
Remove duplicate getSessionFilePath() function.
...
METEOR_SESSION_FILE is the only environment variable for setting your
session file now, not SESSION_FILE_PATH.
2014-02-13 19:13:32 -08:00
Emily Stark
20800f4be7
Make email prompt also accept a username
2014-02-12 12:27:03 -08:00
Emily Stark
76464f647d
Give login prompt when necessary on logs/mongo commands.
...
Add tests for authentication on logs and mongo commands.
2014-02-12 11:22:57 -08:00
Emily Stark
5306fee89d
Fix missed stderr login prompt
2014-02-10 19:25:45 -08:00
Emily Stark
d7cc7142d0
Get rid of authConn().
...
Add some helpers like `withAccountsConnection` for running functions
that need a connection to the accounts server.
2014-02-10 19:12:52 -08:00
Emily Stark
b771f4042e
Clean up some legacy app error messages
2014-02-09 17:15:26 -08:00
Emily Stark
5ecbbd65e1
Ask accounts server for a username if we don't know of one yet
2014-02-08 17:26:26 -08:00
Emily Stark
38734b94e6
Use stderr instead of stdout in login command.
...
This is consistent with old password prompts (see #1600 ), and also makes
it so that everyone who calls `doInteractivePasswordLogin` is using the
same stream as `doInteractivePasswordLogin`.
2014-02-08 16:25:29 -08:00
Emily Stark
aabed4665c
Print login failed error message once instead of twice
2014-02-06 10:14:32 -08:00
Emily Stark
a4a83c1b31
Close the Meteor Accounts connection in the right place.
...
authConn() and call sites need a major cleanup, I have it on my todo
list.
2014-02-06 08:02:00 -08:00
Emily Stark
4f417b402a
Prompt for login if the user isn't already logged in
2014-02-06 08:02:00 -08:00
Emily Stark
fd0f2312b2
Use the right result after waitForRegistration call
2014-02-04 20:23:17 -08:00
David Glasser
f2053a94ca
Merge branch 'sso' into tool-refactoring
...
Conflicts:
tools/auth.js
tools/files.js
tools/http-helpers.js
tools/meteor.js
tools/run.js
2014-02-04 17:03:29 -08:00
Emily Stark
868859428e
Add method timeout for revoking tokens
2014-02-02 13:37:57 -08:00
Emily Stark
1215b7d10d
Don't log in again if we're already logged in.
2014-02-02 13:37:39 -08:00
Emily Stark
13f5d182a3
Adjust to new session method API
2014-01-31 14:50:39 -08:00
Emily Stark
8960b70031
Clean up accounts server methods calls with sessions
2014-01-30 22:57:18 -08:00
Emily Stark
bf0fd32754
Replace some accounts HTTP calls with DDP
2014-01-30 22:20:59 -08:00
David Glasser
990450c2a6
Backport some comment-punctuation changes
...
From tool-refactoring to sso.
Makes the tool-refactoring/sso diff a little smaller (including removing
some files from it entirely) and easier to review. Only took about five
minutes to prepare, I swear this isn't a total waste of time :)
2014-01-30 21:08:56 -05:00
Geoff Schmidt
0c69701a32
sandbox tests. for now, just the .meteorsession file.
2014-01-22 02:54:10 -08:00
David Glasser
44341f4ff9
Merge branch 'sso' into tool-refactoring
...
Conflicts:
tools/auth.js
tools/mongo_runner.js
tools/tests/test-bundler-npm.js
2014-01-16 10:54:33 -08:00
Emily Stark
f4e3a08bae
Print human-friendly error messages for common login failures.
2014-01-03 14:31:18 -08:00
Emily Stark
85d8d5300c
Confirm that we hit the right URL when revoking tokens.
...
Require token revoke endpoints to return JSON with a `tokenRevoked` key,
to avoid being fooled by endpoints that don't understand token
revocation but just happened to return 200 status codes.
2014-01-03 13:42:02 -08:00
Emily Stark
b44855d70d
Send user agent info with galaxy logins
2013-12-31 18:38:03 -08:00
Geoff Schmidt
95e3959165
The period goes outside the parens (like this).
...
(Except when the parenthetical is a complete sentence.)
2013-12-30 06:20:49 -08:00
Geoff Schmidt
4fc8c0d1f3
Eliminate context everywhere!!
...
Add release.js to manage current release.
2013-12-30 05:16:21 -08:00
Geoff Schmidt
5e4607badb
big refactor of command handling. only superficially tested.
2013-12-29 06:04:42 -08:00
Geoff Schmidt
a314eb7d62
Switch from cookies to headers for Meteor auth
2013-12-18 15:36:04 -08:00
Emily Stark
373bc2ceec
Allow overwriting ~/.meteorsession file with env var.
...
Useful for tests.
2013-12-16 22:03:50 -08:00
Emily Stark
63c7aecbda
Remove stray space on galaxy login
2013-12-16 14:32:33 -08:00
Emily Stark
4ba6d3f08d
Correct use of on galaxy login
2013-12-12 23:34:22 -08:00
Geoff Schmidt
ad680517ee
delete obsolète comment
2013-12-11 05:57:20 -08:00
Geoff Schmidt
7d7474aacb
Print correct username when logging in.
2013-12-11 04:51:21 -08:00
Geoff Schmidt
410a585d76
Deferred registration!
2013-12-11 04:26:01 -08:00
Geoff Schmidt
ff4e229b4a
Session file: support being logged in with no username
2013-12-10 20:53:21 -08:00
Geoff Schmidt
de55d62645
track username separately in each universe
2013-12-10 20:16:58 -08:00
Geoff Schmidt
0ff03113f4
Refactor session file handling
2013-12-10 17:10:16 -08:00
Geoff Schmidt
95667c3a10
log out correctly across universe changes
2013-12-10 16:57:46 -08:00
Geoff Schmidt
3f849d5c64
Fix bug that causes tokens to be revoked over and over again
2013-12-08 23:54:44 -08:00
Geoff Schmidt
d168857ab6
refactor http auth
2013-12-08 05:58:08 -08:00