{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/270","labels_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/270/comments","events_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/270/events","html_url":"https://github.com/simplabs/ember-simple-auth/issues/270","id":39781669,"number":270,"title":"$.ajaxPrefilter hooking strategy too global?","user":{"login":"jayphelps","id":762949,"avatar_url":"https://avatars.githubusercontent.com/u/762949?v=3","gravatar_id":"","url":"https://api.github.com/users/jayphelps","html_url":"https://github.com/jayphelps","followers_url":"https://api.github.com/users/jayphelps/followers","following_url":"https://api.github.com/users/jayphelps/following{/other_user}","gists_url":"https://api.github.com/users/jayphelps/gists{/gist_id}","starred_url":"https://api.github.com/users/jayphelps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayphelps/subscriptions","organizations_url":"https://api.github.com/users/jayphelps/orgs","repos_url":"https://api.github.com/users/jayphelps/repos","events_url":"https://api.github.com/users/jayphelps/events{/privacy}","received_events_url":"https://api.github.com/users/jayphelps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2014-08-08T00:25:31Z","updated_at":"2015-07-20T19:42:01Z","closed_at":null,"body":"Since ember-simple-auth uses `$.ajaxPrefilter`, literally *any* calls that end up using `jQuery.ajax` will trigger the prefilter callback and run against any `Authorizer` defined.\r\n\r\nThis steps on the toes of other libraries and code paths that rely on jQuery's AJAX helpers, as well as makes it impossible to conditionally authorize certain models different ways (or selectively not authorize some).\r\n\r\nAny alternatives?"},"comment":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/comments/123003264","html_url":"https://github.com/simplabs/ember-simple-auth/issues/270#issuecomment-123003264","issue_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/270","id":123003264,"user":{"login":"marcoow","id":1510,"avatar_url":"https://avatars.githubusercontent.com/u/1510?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoow","html_url":"https://github.com/marcoow","followers_url":"https://api.github.com/users/marcoow/followers","following_url":"https://api.github.com/users/marcoow/following{/other_user}","gists_url":"https://api.github.com/users/marcoow/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoow/subscriptions","organizations_url":"https://api.github.com/users/marcoow/orgs","repos_url":"https://api.github.com/users/marcoow/repos","events_url":"https://api.github.com/users/marcoow/events{/privacy}","received_events_url":"https://api.github.com/users/marcoow/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T19:42:01Z","updated_at":"2015-07-20T19:42:01Z","body":"yeah, that's true actually - was a bit over eager cleaning up the tickets…"}}