{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/511","labels_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/511/comments","events_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/511/events","html_url":"https://github.com/simplabs/ember-simple-auth/issues/511","id":71942665,"number":511,"title":"sessionInvalidationSucceeded() arguments?","user":{"login":"justinaray","id":11987207,"avatar_url":"https://avatars.githubusercontent.com/u/11987207?v=3","gravatar_id":"","url":"https://api.github.com/users/justinaray","html_url":"https://github.com/justinaray","followers_url":"https://api.github.com/users/justinaray/followers","following_url":"https://api.github.com/users/justinaray/following{/other_user}","gists_url":"https://api.github.com/users/justinaray/gists{/gist_id}","starred_url":"https://api.github.com/users/justinaray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinaray/subscriptions","organizations_url":"https://api.github.com/users/justinaray/orgs","repos_url":"https://api.github.com/users/justinaray/repos","events_url":"https://api.github.com/users/justinaray/events{/privacy}","received_events_url":"https://api.github.com/users/justinaray/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-29T17:54:33Z","updated_at":"2015-04-30T18:55:02Z","closed_at":"2015-04-30T18:55:02Z","body":"I would like to be able to take some authenticator-dictated action after successful session invalidation; specifically, redirecting to a URL.\r\n\r\nSince the store cleaning and other actions will occur after SimpleAuth.Session.invalidate() promise resolution, the only 'safe' place to do a redirect would be in the sessionInvalidationSucceeded action.\r\n\r\nI could use properties or a service to accomplish this, but in the spirit of separation of concerns, i would like my authenticator to build and pass me the url.  Could the promise resolution data be passed from the invalidate call to the sessionInvalidationSucceeded(data) action?\r\n\r\nSince this would be an API change, i thought it prudent to start a dialog rather than just submitting a PR."},"comment":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/comments/97925973","html_url":"https://github.com/simplabs/ember-simple-auth/issues/511#issuecomment-97925973","issue_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/511","id":97925973,"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-04-30T18:55:02Z","updated_at":"2015-04-30T18:55:02Z","body":"I don't think that's a very common use case actually. Also I don't think it's a great API if `Session.invalidate` resolves with a value. "}}