{"issue":{"title":"request.env is half-missed in callback_phase","user":{"login":"Bregor","id":745,"url":"https://api.github.com/users/Bregor","gravatar_id":"232657bc369e6379b6a8801452d2507f","avatar_url":"https://secure.gravatar.com/avatar/232657bc369e6379b6a8801452d2507f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-26T16:15:45Z","milestone":null,"state":"open","updated_at":"2011-12-26T16:15:45Z","labels":[],"id":2658817,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/intridea/omniauth-ldap/issues/9","body":"* Rails-3.1.3 | 3.2.0.rc1\r\n* Devise-1.5.3\r\n* Omniauth-LDAP-1.0.2\r\n\r\nIs there any way to obtain real remote ip in callback phase?\r\n\r\nAs far as I dig I get following:\r\n\r\nOutside of callback_phase:\r\n\r\n    request.env[\"REMOTE_ADDR\"] == request.env[\"action_dispatch.remote_ip\"] == 77.75.123.65 (my real client ip)\r\n\r\nInside of callback_phase:\r\n\r\n    request.env[\"REMOTE_ADDR\"] == request.env[\"action_dispatch.remote_ip\"] == 127.0.0.1\r\n\r\nAnd there is no any proxy variables from NGINX in callback_phase, such as `HTTP_X_FORWARDED_FOR` and so on.\r\n\r\n\r\nCode examples:\r\n\r\n* https://gist.github.com/f0b0c2946e4bc94c4a3f#file_omniauth_callbacs_controller.rb\r\n* https://gist.github.com/f0b0c2946e4bc94c4a3f#file_routes.rb\r\n\r\n**P.S.** with oa-enterprise-0.3 and devise-1.4 request.env was unchanged in callback_phase.","number":9,"url":"https://api.github.com/repos/intridea/omniauth-ldap/issues/9","comments":0,"assignee":null},"action":"opened"}