Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the user object structure to allow the registration to more than one account of the same 3rd party OAuth service #54

Open
splendido opened this issue Dec 21, 2014 · 5 comments

Comments

@splendido
Copy link
Member

This is something in the air since a long time ago...
Basically you'd like an user to access her account on a Meteor app using many different accounts from the same OAuth provider.

Before changing UI packages like accounts-ui, useraccounts, accounts-entry, and other packages like accounts-meld, connect-with, link-accounts, etc.

...we'd need to change the structure of the user object from this:

{
  ...
  services: {
    password: { ... },
    facebook: {
      id: 'asldknijasf,.naflk',
      ...
    },
    google: {
      id: 'asadsasdaflkhgf',
      ...
    },
    ...
  }
}

to something like this:

{
  ...
  services: {
    ...
    facebook: [
      { id: 'asadsasdaflkhgf', ... },
      { id: 'opsdnsdhansah', ... },
      { id: 'qwpodmcsaalm', ... },
    ],
    google: [...],
}

Apparently one of the key method dealing with this is updateOrCreateUserFromExternalService which builds selectors like {"services.facebook.id": service_id} to find the possibly logging in user.
There's also an index about this you can find here

This request showed up recently here, but I remember was already raised in other places I'm not able to find out at the moment, sorry.

@mitar
Copy link

mitar commented Dec 21, 2014

+1

@mitar
Copy link

mitar commented Dec 21, 2014

I does support multiple e-mail addresses, at least.

@markudevelop
Copy link

+1

2 similar comments
@Sivli-Embir
Copy link

👍

@ilanus
Copy link

ilanus commented Dec 22, 2014

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants