{"action":"created","issue":{"url":"https://api.github.com/repos/fphilipe/warden-github-rails/issues/14","labels_url":"https://api.github.com/repos/fphilipe/warden-github-rails/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/fphilipe/warden-github-rails/issues/14/comments","events_url":"https://api.github.com/repos/fphilipe/warden-github-rails/issues/14/events","html_url":"https://github.com/fphilipe/warden-github-rails/pull/14","id":86193109,"number":14,"title":"Allow to customize warden intercept_401 config","user":{"login":"Fredar","id":6557731,"avatar_url":"https://avatars.githubusercontent.com/u/6557731?v=3","gravatar_id":"","url":"https://api.github.com/users/Fredar","html_url":"https://github.com/Fredar","followers_url":"https://api.github.com/users/Fredar/followers","following_url":"https://api.github.com/users/Fredar/following{/other_user}","gists_url":"https://api.github.com/users/Fredar/gists{/gist_id}","starred_url":"https://api.github.com/users/Fredar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fredar/subscriptions","organizations_url":"https://api.github.com/users/Fredar/orgs","repos_url":"https://api.github.com/users/Fredar/repos","events_url":"https://api.github.com/users/Fredar/events{/privacy}","received_events_url":"https://api.github.com/users/Fredar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T14:14:14Z","updated_at":"2015-06-14T14:55:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fphilipe/warden-github-rails/pulls/14","html_url":"https://github.com/fphilipe/warden-github-rails/pull/14","diff_url":"https://github.com/fphilipe/warden-github-rails/pull/14.diff","patch_url":"https://github.com/fphilipe/warden-github-rails/pull/14.patch"},"body":"This will prevent warden intercepting `401` responses by default - same config is used by Devise here https://github.com/plataformatec/devise/blob/4b41dab11ba046804824ee358ac7d689484acacf/lib/devise.rb#L445\r\n\r\nRight now responding with `401` from an unrelated endpoint (not configured with github_authenticate), will trigger warden `failure_app` response."},"comment":{"url":"https://api.github.com/repos/fphilipe/warden-github-rails/issues/comments/111837664","html_url":"https://github.com/fphilipe/warden-github-rails/pull/14#issuecomment-111837664","issue_url":"https://api.github.com/repos/fphilipe/warden-github-rails/issues/14","id":111837664,"user":{"login":"Fredar","id":6557731,"avatar_url":"https://avatars.githubusercontent.com/u/6557731?v=3","gravatar_id":"","url":"https://api.github.com/users/Fredar","html_url":"https://github.com/Fredar","followers_url":"https://api.github.com/users/Fredar/followers","following_url":"https://api.github.com/users/Fredar/following{/other_user}","gists_url":"https://api.github.com/users/Fredar/gists{/gist_id}","starred_url":"https://api.github.com/users/Fredar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fredar/subscriptions","organizations_url":"https://api.github.com/users/Fredar/orgs","repos_url":"https://api.github.com/users/Fredar/repos","events_url":"https://api.github.com/users/Fredar/events{/privacy}","received_events_url":"https://api.github.com/users/Fredar/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T14:55:20Z","updated_at":"2015-06-14T14:55:20Z","body":"Do you mean `def setup_401_intercept(config) config.intercept_401 = false end`?"}}