Port the openid_login method to use the JSON API provided by fedoauth