I'm trying to setup a custom force.com site VF page that will allow standard user logins to multiple orgs on different domains.
My site lives on an na12 org, and the login for that site works correctly. I'm using the ajax toolkit to submit the UN/PW+token to get the session ID then redirecting to the frontDoor.jsp page.
I'm basically following this example: https://github.com/BPeddle/SFDC.Custom.Login/blob/master/custom_login.page
My issue is I'm getting an invalid login error when trying other logins to different orgs. Any suggestions? I've tried adding the force.com site URL to remote site settings in the other orgs, adding its IP to the whitelist IP list, neither seem to make a difference.