{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/682","repository_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/682/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/682/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/682","id":166374491,"number":682,"title":"undefined method `[]' for nil:NilClass during omniauth callback","user":{"login":"franciscoml67","id":18725946,"avatar_url":"https://avatars.githubusercontent.com/u/18725946?v=3","gravatar_id":"","url":"https://api.github.com/users/franciscoml67","html_url":"https://github.com/franciscoml67","followers_url":"https://api.github.com/users/franciscoml67/followers","following_url":"https://api.github.com/users/franciscoml67/following{/other_user}","gists_url":"https://api.github.com/users/franciscoml67/gists{/gist_id}","starred_url":"https://api.github.com/users/franciscoml67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franciscoml67/subscriptions","organizations_url":"https://api.github.com/users/franciscoml67/orgs","repos_url":"https://api.github.com/users/franciscoml67/repos","events_url":"https://api.github.com/users/franciscoml67/events{/privacy}","received_events_url":"https://api.github.com/users/franciscoml67/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-19T16:24:06Z","updated_at":"2016-08-01T15:00:22Z","closed_at":null,"body":"I think there's some kind of problem with this line of code in omniauth_callbacks_controller (line 14):\r\n\r\n    ...\r\n\r\n      devise_mapping = [request.env['omniauth.params']['namespace_name'],\r\n                        request.env['omniauth.params']['resource_class'].underscore.gsub('/', '_')].compact.join('_')\r\n    ...\r\n\r\nAfter successfully being prompted by facebook, the 'omniauth' object seems to be empty raising the following error:\r\n\r\n    undefined method `[]' for nil:NilClass\r\n\r\n    C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/devise_token_auth-162967970c95/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb:14:in `redirect_callbacks'\r\n\r\nI think this issue has been addressed before, but I think it wasn't solved and it has now, resurfaced."},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/236606514","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/682#issuecomment-236606514","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/682","id":236606514,"user":{"login":"franciscoml67","id":18725946,"avatar_url":"https://avatars.githubusercontent.com/u/18725946?v=3","gravatar_id":"","url":"https://api.github.com/users/franciscoml67","html_url":"https://github.com/franciscoml67","followers_url":"https://api.github.com/users/franciscoml67/followers","following_url":"https://api.github.com/users/franciscoml67/following{/other_user}","gists_url":"https://api.github.com/users/franciscoml67/gists{/gist_id}","starred_url":"https://api.github.com/users/franciscoml67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franciscoml67/subscriptions","organizations_url":"https://api.github.com/users/franciscoml67/orgs","repos_url":"https://api.github.com/users/franciscoml67/repos","events_url":"https://api.github.com/users/franciscoml67/events{/privacy}","received_events_url":"https://api.github.com/users/franciscoml67/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T15:00:21Z","updated_at":"2016-08-01T15:00:21Z","body":"update: the request.env['omniauth.params'] is coming in null from the callback, as well as request.env['omniauth.auth'] for that matter...\r\n\r\nwould really appreciate some help in this @lynndylanhurley ! thank you in advance"}}
{"actor":{"display_login":"franciscoml67"}}