-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compare and merge with brettle:accounts-add-service #4
Comments
Lets consider also mondora:connect-with |
Lets consider that connect with package in the context of #2 |
I spent a while this morning looking at your code, and here's my take on a comparison:
Another difference is that one-account monkey patches the core, but brettle:accounts-add-service does not (as of Meteor 1.2). Apologies if I've missed anything... Based on the above, my (obviously biased) recommendation would be to just use I continue to be happy to move any/all of |
Because of 3, 4 isn't necessary in one-account. i.e. any service account becomes a password account because the email is added to the emails list. Just without a password set. edit: because of this, any account can always use reset password. |
When this discussion is over, it would be nice if we have settled on some "sane" and secure defaults for our account merging solution. |
I agree that 3 provides some support for |
I haven't thought about other non-oauth providers. That's a good point. |
I know we have taken a bit of a different approaches to solving pretty much the same problem. I know i "monkey patch" the core and wrapping functions to do my stuff. I did see you using a lot of work around packages which pretty much monkey patches the core too. Maybe a "new" accounts system forked from the core accounts system is a better approach, this way we would have full control over what happens where and we don't have to monkey patch or work around anything? |
What about sharing these concerns with MDG and try to see whether there's room for them to accept changed to the current Accounts system? |
Ofc, thats the preferred option. Im just throwing Ideas out there. an overhaul of the accounts system is needed. And mdg is fine woth that even better. Right now Im working on separating email stuff from accounts-password for example |
I'm sorry my post was incomplete. The overhaul you're doing is great! |
@zimme, I hope you didn't take offense at my "monkey patching" comment. None was intended. In fact, I don't see any way to achieve the "add service to the current logged in user and successfully log in as that same user (instead of throwing an error)" behavior without monkey patching. As you mention, I did plenty of monkey patching in the workaround packages you mention, so I realize that sometimes it is needed. But just to be clear, the workaround packages that |
@brettle, I never get offended online ;) and I know you were only pointing out differences in approaches. The more we talk this through the more I feel like maybe we should try and put together a PR for this which is opt-in behaviour to keep backwards compatibility, or do we want to do this as a separate package to have support for previous versions of meteor? |
I've started this https://github.com/meteor-useraccounts/one-account/wiki/Architecture Where I think we should outline what we expect from the behaviours of this solution. Once we have in black and white the behaviour we expect, we move on to see how we should implement this in the "best" way. |
I've added my perspective to the wiki page. In terms of defining the problem, it might be more useful to frame it in terms of "user stories" from the perspective of the various "users" involved, namely the end user, the app developer, developers of login handler packages, and possibly Meteor core developers. I'll take a shot at that when I get a moment. But first, I had a flash of insight concerning a solution (I think). Assuming the one-account security issue is addressed by requiring that a new service can only be added to the current logged in user, the primary (only?) advantage of P.S. I somewhat misspoke about whether accounts-add-service requires any monkey patching to work with Meteor 1.2. While the functionality of accounts-add-service itself doesn't require any monkey patching, |
I don't think we can assume that an account without resume tokens are a "new" account. It might just be that an admin of a app have force logged out all users because of some reason. The user stories thing I like, but we need to specify how the api is expected to work in each case too. |
Good point on lack of resume tokens not necessarily meaning an account is new. I'm currently using that approach in However, I think I might have another better idea. Instead of monkey patching Regarding the user stories and api, my thinking was that the user stories where the "users" are developers would specify how the api would work. |
What if we start from the 'end-user'? Just to put clear the various flows we'd like to support... As a side note, UA used to set |
For this package I think the client-side calls to I like the idea of maybe working on |
The |
Compare and keep the best solution and work together?
/cc @brettle
The text was updated successfully, but these errors were encountered: