multiple accounts
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.
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.
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?
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.
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.