15 Commits

Author SHA1 Message Date
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