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

multiple accounts #90

Open
gearmonkey opened this issue Jan 16, 2014 · 4 comments
Open

multiple accounts #90

gearmonkey opened this issue Jan 16, 2014 · 4 comments

Comments

@gearmonkey
Copy link

Hi!
I'm trying to get apex to work with both a local and OpenAuth account (specifically twitter, but really I'm asking in general), with both auth methods associated with a single user (so a user could login either with name/pass or twitter). Having been unable to find an example of this sort of thing, I've been trying to get it working via a custom OpenidAfter method, though it's proving tricky. Is there a straight forward way to do this using Apex? I don't want to reinvent any wheels.

@cd34
Copy link
Owner

cd34 commented Jan 17, 2014

There is a 'merge' function but I don't think it was ever documented as it wasn't tested too much beyond personal use.

Basically, the idea was that a single user could have multiple credentials associated. So, they could have a local login and then associate a Twitter account with it. Let me doublecheck the code and make sure that was pushed and make sure it is documented.

@gearmonkey
Copy link
Author

Ah, that is exactly the thing I'm trying to do. I couldn't seem to find it in the repo, so I'm assuming it wasn't pushed? I'm happy to assist?

@gearmonkey
Copy link
Author

coming back to this after much delay. @cd34, I don't see a merge function in the code that deals with accounts, but perhaps I'm misreading the database helper merge. At any rate, getting this in would be great and as I said earlier I'm more than happy to work on it, I just don't want to replicate what you've already done.

@cd34
Copy link
Owner

cd34 commented Nov 16, 2014

I think it is /add_auth

I haven't worked with this codebase in a while due to a new job, but, I think that is what I called it.

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

2 participants