apex icon indicating copy to clipboard operation
apex copied to clipboard

multiple accounts

Open gearmonkey opened this issue 12 years ago • 4 comments

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.

gearmonkey avatar Jan 16 '14 14:01 gearmonkey

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.

cd34 avatar Jan 17 '14 19:01 cd34

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 avatar Feb 04 '14 21:02 gearmonkey

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.

gearmonkey avatar Nov 09 '14 12:11 gearmonkey

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.

cd34 avatar Nov 16 '14 02:11 cd34