{"action":"opened","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/3827","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/3827/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/3827/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/3827/events","html_url":"https://github.com/plataformatec/devise/issues/3827","id":117716734,"number":3827,"title":"Devise + Cloudflare","user":{"login":"tom-mullen","id":265153,"avatar_url":"https://avatars.githubusercontent.com/u/265153?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-mullen","html_url":"https://github.com/tom-mullen","followers_url":"https://api.github.com/users/tom-mullen/followers","following_url":"https://api.github.com/users/tom-mullen/following{/other_user}","gists_url":"https://api.github.com/users/tom-mullen/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-mullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-mullen/subscriptions","organizations_url":"https://api.github.com/users/tom-mullen/orgs","repos_url":"https://api.github.com/users/tom-mullen/repos","events_url":"https://api.github.com/users/tom-mullen/events{/privacy}","received_events_url":"https://api.github.com/users/tom-mullen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T00:57:59Z","updated_at":"2015-11-19T00:57:59Z","closed_at":null,"body":"Hey Guys,\r\n\r\nI was hoping you could help enlighten me on an issue, if not solve it.\r\n\r\nWe have been using devise (3.4.1) without a hitch until recently when we switched to Cloudflare for DNS and SSL (with Heroku). Since moving to this setup, whenever a new customer signs up, their session is first being created and then destroyed/invalidated before they reach the destination set by the `after_sign_in_path_for` method; in our case customers#show.\r\n\r\nTo clarify, when `after_sign_in_path_for` is called `current_customer` is present, yet when arriving at the `customers#show` controller action, `current_customer` is nil. Odd!\r\n\r\nAny help/intel you could offer would be much appreciated!"}}