{"issue":{"created_at":"2011-12-11T20:53:25Z","state":"closed","updated_at":"2011-12-11T21:03:16Z","comments":1,"user":{"gravatar_id":"1d4a45a695b48edc70359ca6d015e2f4","id":233574,"url":"https://api.github.com/users/JohnMerlino1","avatar_url":"https://secure.gravatar.com/avatar/1d4a45a695b48edc70359ca6d015e2f4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"JohnMerlino1"},"body":"Hey all,\r\n\r\nI created an html form within a wordpress site, which represents a login screen:\r\n\r\n<form accept-charset=\"UTF-8\" action=\"http://www.mysite.com/users/sign_in\" class=\"user_new\" id=\"user_new\" method=\"post\">\r\n\r\n<div style=\"margin:0;padding:0;display:inline\">\r\n<input name=\"utf8\" type=\"hidden\" value=\"✓\">\r\n<input name=\"authenticity_token\" type=\"hidden\" value=\"\">\r\n<input name=\"remote\" type=\"hidden\" value=\"true\">\r\n<input name=\"commit\" type=\"hidden\" value=\"Sign in\">\r\n</div>\r\n\r\n<div class=\"field\">\r\n<label for=\"user_email\">Email</label>\r\n<input id=\"user_email\" name=\"user[email]\" size=\"30\" type=\"text\" value=\"\">\r\n</div>\r\n<div class=\"field\">\r\n<label for=\"user_password\">Password</label>\r\n<input id=\"user_password\" name=\"user[password]\" size=\"30\" type=\"password\">\r\n</div>\r\n<div class=\"field\">\r\n<div class=\"remember_me\">\r\n<input name=\"user[remember_me]\" type=\"hidden\" value=\"0\"><input id=\"user_remember_me\" name=\"user[remember_me]\" type=\"checkbox\" value=\"1\">\r\n<label for=\"user_remember_me\">Keep me logged in</label>\r\n</div>\r\n<div class=\"login_button\">\r\n<input id=\"user_submit\" name=\"commit\" type=\"submit\" value=\"Submit\">\r\n</div>\r\n</div>\r\n</form>\r\n\r\nSo that contains pretty much all the parameters devise contains, except the authenticity token is blank here, because I believe devise generates a random string during every session, and of course thats not possible to do within wordpress. I was also unable to log in via curl:\r\n\r\ncurl -d 'remote=true&commit=\"Sign in\"&utf8=✓&user\\[email\\]=abc@abc.net&user\\[password\\]=abcdef&user\\[authenticity_token\\]=\"bOtPJ5Nm5GXeoZsYVD9lIH7GOI/IgbGWiK7UquLqEeI=\"' http://localhost:3000/users/sign_in\r\n\r\nWhat that would do is just send a response back the unauthenticated line in devise.en.yml. And I believe it's because the authenticity_token there is wrong, because I just copied a string that wasnt generated. \r\n\r\nSo if I am unable to generate an authenticity token through a wordpress webform, how then can I send post data to devise and have it redirect to the home page of my rails application? In other words, I am trying to get from the login form of  a wordpress site to the home page of a rails application through devise application.\r\n\r\nthanks for response","assignee":null,"id":2517503,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":1501,"title":"posting an html form within wordpress site to rails app using devise for authentication","html_url":"https://github.com/plataformatec/devise/issues/1501","closed_at":"2011-12-11T21:03:16Z","url":"https://api.github.com/repos/plataformatec/devise/issues/1501","milestone":null},"action":"closed"}