Commit Graph

41 Commits

Author SHA1 Message Date
David Glasser
fa27498139 Make autopublish into an empty package, detected via weak deps. 2013-07-25 18:54:42 -07:00
David Glasser
a57a40ea2c fix accounts package detection to work again 2013-07-25 18:54:41 -07:00
David Glasser
9f38258b54 Drop all @export lines. Add api.exportSymbol instead. 2013-07-25 18:54:40 -07:00
Geoff Schmidt
d2024ccee1 Clean up namespacing in accounts system too. 2013-07-25 18:54:40 -07:00
Geoff Schmidt
3d1c09794f Comprehensive namespace cleanup. 2013-07-25 18:54:40 -07:00
Tim Haines
65c288bdb8 Handle Meteor.loginWithX called with callback but not options 2013-07-23 22:28:28 -07:00
David Glasser
6970a89ee0 Implement "api.imply". Make all accounts packages imply accounts-base.
If X uses Y and Y implies Z, then X is also treated as using Z. This can be used
to create umbrella packages, etc.
2013-07-16 18:45:56 -07:00
Nick Martin
44ac53f819 Tweak package descriptions. 2013-05-17 21:01:14 -07:00
Tim Haines
00efa2fe51 Update requestCredential method to take only 2 params - options and credentialRequestCompleteCallback 2013-05-17 18:00:35 -07:00
Tim Haines
107a06fd8c Extract github package from accounts-github 2013-05-17 18:00:35 -07:00
Tim Haines
b7754f8c28 Refactor Oauth packages and extract twitter package from accounts-twitter 2013-05-17 18:00:35 -07:00
David Glasser
8dbee56e77 Add .gitignore to package directories to match linker branch.
This way switching between linker and devel doesn't leave you with lots of junk
in git status.
2013-05-13 10:57:37 -07:00
Avital Oliver
be8dc47113 Better error rethrowing 2013-04-30 11:43:30 -07:00
Avital Oliver
c69ab5d350 Include response in HTTP 4xx/5xx error messages 2013-04-30 11:43:30 -07:00
Avital Oliver
3ff6df2e9e Merge branch 'master' into devel
Conflicts:
	History.md
	packages/accounts-github/github_server.js
2013-04-24 14:01:22 -07:00
Avital Oliver
29ddfc6f3c accounts-github: Also send user agent on oauth login call 2013-04-24 10:46:44 -07:00
Avital Oliver
0bb71ff871 accounts-github: Generate user agent string from release version 2013-04-24 10:34:05 -07:00
P. Mark Anderson
2ffb185e47 Added user agent to account-github's getIdentity() function. This is untested.
See https://github.com/meteor/meteor/issues/981
2013-04-24 10:33:51 -07:00
Avital Oliver
cd6427fa5c Merge branch 'pr/982' into devel
Conflicts:
	packages/accounts-github/github_server.js
2013-04-24 10:00:24 -07:00
Avital Oliver
e43c94ee2e accounts-github: Generate user agent string from release version 2013-04-24 09:56:02 -07:00
P. Mark Anderson
b4d96d5795 Added user agent to account-github's getIdentity() function. This is untested.
See https://github.com/meteor/meteor/issues/981
2013-04-24 09:44:38 -07:00
Avital Oliver
f6028b1578 OAuth login services use the new http sync api 2013-04-22 15:40:04 -07:00
Avital Oliver
a72134fd80 Better security, comments, docs and APIs for publishing more user document fields 2013-04-19 11:38:09 -07:00
Avital Oliver
b6282eadd9 Publish user's login service fields in case autopublish is on.
Publish all but secret fields to the current user, and
basic identification information for other users.
2013-04-19 11:38:09 -07:00
Avital Oliver
a9272a6cbf Significantly improve error with misconfigured OAuth services
- We now rethrow any errors, which means we get a proper stack trace,
  rather than it seemingly coming from within a callback in the http package
- The error thrown contains the response body which typically contains
  helpful information
2013-04-13 20:16:28 -07:00
David Glasser
5a5204e3a4 Remove closures around package files. (hint: git blame -w)
The bundler now adds closures around client files and the server adds closures
around server files.
2013-03-19 15:13:53 -07:00
David Glasser
d2ae5f7e1c Replace almost all uses of Meteor.uuid with Random.id. 2013-02-12 23:55:19 -08:00
Avital Oliver
de90c75551 Rename css files in oauth login provider packages 2012-12-26 23:04:15 -08:00
Avital Oliver
a0b497e926 Simplify and fix accounts-ui listing of login services 2012-12-26 23:04:15 -08:00
Alex Notov
28b42e924e Removed linkedin package from this PR
Login services should be defined from within their packages

Corresponding login service assets (images and css should be in their respective packages not inside of accounts-ui-unstyled)

Conflicts:
	packages/accounts-linkedin/linkedin_client.js
	packages/accounts-linkedin/package.js
	packages/accounts-ui-unstyled/login_buttons.js
	packages/accounts-ui-unstyled/login_buttons_images.css
2012-12-26 23:04:14 -08:00
Avital Oliver
ea992c61f6 accounts-github: don't ask for the "user" scope unless explicitly requested 2012-10-15 14:00:23 -07:00
David Glasser
00eda43420 OAuth login to an existing account now *does* update the services.PROVIDER
field (eg, to refresh access tokens) but does *not* update anything else (which
is effectively a no-op change because in practice the only thing that it
attempted to update was "profile" but because existing fields were not
overridden, this never did anything).

Remove the "extra" argument from createUser and related functions. Add a new
"profile" option to the main options dictionary, interpreted by
defaultCreateUserHook.
2012-10-10 21:55:02 -07:00
Avital Oliver
a6e71dcde6 accounts-github: better dimensions for popup 2012-10-09 22:14:03 -07:00
Avital Oliver
df622401b4 accounts-ui: redo Accounts.ui.config 2012-10-09 20:11:15 -07:00
Nick Martin
accd41bddf Remove Accounts.{facebook,github,google}.config. Replace with options in loginWithFacebook. 2012-10-09 20:04:19 -07:00
David Glasser
dd77a26acc Rename Accounts.configuration to Accounts.loginServiceConfiguration.
Matches other references to it in the code, and is harder to confuse with
Accounts.config.
2012-10-09 19:18:02 -07:00
Avital Oliver
147ef71195 Large refactor of accounts-ui
- Split login_buttons.html and login_buttons.js into multiple files
  - Specifically, make it easier to reason about the display of loginButtons whether it is in dropdown mode or not
- Split templates into subtemplates to make it easier to read the login button .html files as "tables of contents"
- Introduce Meteor._loginButtonsSession, which makes it easier to access internal session fields for loginButtons
- Unify code that calls the various Meteor.loginWithFoo() functions

Breaking change: rename "configureLoginServicesDialogForFoo" to "configureLoginServiceDialogForFoo" (in packages such as accounts-facebook)
2012-10-08 19:38:20 -07:00
David Glasser
7b758a0c9b Rename and refactor Accounts.updateOrCreateUser.
This is an internal function only used by OAuth implementations and the
equivalent, so rename to a more specific name:
Accounts.updateOrCreateUserFromExternalService.

Change the signature to directly take serviceName and serviceData instead of a
nested data structure with a very specific structure. Similarly, change
Accounts.oauth.registerService's handleOauthRequest callback to un-nest the
service data.

Throw errors on misuse (if you try to use it with the "password" or
soon-to-be-introduced "resume" services, or if you don't provide an id).

Avoid doing no-op user updates if there is nothing new in "extra".
2012-10-08 09:18:55 -07:00
Avital Oliver
c086ca0912 accounts-github: cleanup, small tweaks 2012-10-05 00:22:09 -07:00
Braden Simpson
6da4833885 added username to the identity. 2012-09-27 11:19:10 -07:00
Braden Simpson
55e291e671 Added the accounts-github files into the main meteor repo 2012-09-24 19:57:06 -07:00