{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/617","labels_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/617/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/617/comments","events_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/617/events","html_url":"https://github.com/simplabs/ember-simple-auth/issues/617","id":101073763,"number":617,"title":"Handle 302s Properly","user":{"login":"nahtnam","id":3316360,"avatar_url":"https://avatars.githubusercontent.com/u/3316360?v=3","gravatar_id":"","url":"https://api.github.com/users/nahtnam","html_url":"https://github.com/nahtnam","followers_url":"https://api.github.com/users/nahtnam/followers","following_url":"https://api.github.com/users/nahtnam/following{/other_user}","gists_url":"https://api.github.com/users/nahtnam/gists{/gist_id}","starred_url":"https://api.github.com/users/nahtnam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahtnam/subscriptions","organizations_url":"https://api.github.com/users/nahtnam/orgs","repos_url":"https://api.github.com/users/nahtnam/repos","events_url":"https://api.github.com/users/nahtnam/events{/privacy}","received_events_url":"https://api.github.com/users/nahtnam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-14T18:30:13Z","updated_at":"2015-08-14T19:03:24Z","closed_at":"2015-08-14T18:35:36Z","body":"Hey!\r\n\r\nI noticed that ember simple auth doesnt really handle 302's. When my server returns one, instead of redirecting or transitioning routes, it just makes another api call.\r\n\r\nI think ember-simple-auth should redirect or transition to the route specified in the 302 if it does get one. My current use case is if the user has not completed their registration, I want them to be redirected to the settings page, but there is no way I can do that via the API. I have extended the application route to do that, but if someone bypasses it or implements their own website using my api, I want ember to be able to handle it.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/comments/131210578","html_url":"https://github.com/simplabs/ember-simple-auth/issues/617#issuecomment-131210578","issue_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/617","id":131210578,"user":{"login":"nahtnam","id":3316360,"avatar_url":"https://avatars.githubusercontent.com/u/3316360?v=3","gravatar_id":"","url":"https://api.github.com/users/nahtnam","html_url":"https://github.com/nahtnam","followers_url":"https://api.github.com/users/nahtnam/followers","following_url":"https://api.github.com/users/nahtnam/following{/other_user}","gists_url":"https://api.github.com/users/nahtnam/gists{/gist_id}","starred_url":"https://api.github.com/users/nahtnam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahtnam/subscriptions","organizations_url":"https://api.github.com/users/nahtnam/orgs","repos_url":"https://api.github.com/users/nahtnam/repos","events_url":"https://api.github.com/users/nahtnam/events{/privacy}","received_events_url":"https://api.github.com/users/nahtnam/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T19:03:24Z","updated_at":"2015-08-14T19:03:24Z","body":"@marcoow So what are you supposed to return for an incomplete registration? 302 seems to be the only valid answer."}}