{"action":"created","issue":{"url":"https://api.github.com/repos/bonobos/spree/issues/302","labels_url":"https://api.github.com/repos/bonobos/spree/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/bonobos/spree/issues/302/comments","events_url":"https://api.github.com/repos/bonobos/spree/issues/302/events","html_url":"https://github.com/bonobos/spree/pull/302","id":64542998,"number":302,"title":"Sign in the current API user when authenticating from Token","user":{"login":"magnusvk","id":704153,"avatar_url":"https://avatars.githubusercontent.com/u/704153?v=3","gravatar_id":"","url":"https://api.github.com/users/magnusvk","html_url":"https://github.com/magnusvk","followers_url":"https://api.github.com/users/magnusvk/followers","following_url":"https://api.github.com/users/magnusvk/following{/other_user}","gists_url":"https://api.github.com/users/magnusvk/gists{/gist_id}","starred_url":"https://api.github.com/users/magnusvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnusvk/subscriptions","organizations_url":"https://api.github.com/users/magnusvk/orgs","repos_url":"https://api.github.com/users/magnusvk/repos","events_url":"https://api.github.com/users/magnusvk/events{/privacy}","received_events_url":"https://api.github.com/users/magnusvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T14:41:26Z","updated_at":"2015-03-26T15:10:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bonobos/spree/pulls/302","html_url":"https://github.com/bonobos/spree/pull/302","diff_url":"https://github.com/bonobos/spree/pull/302.diff","patch_url":"https://github.com/bonobos/spree/pull/302.patch"},"body":"Currently, when authenticating from token, we have to use\n`@current_api_user`. This will allow any code that relies on\n`spree_current_user` or `try_spree_current_user` to continue to work\ncorrectly. As we use `store: false`, this will only apply to the current\nrequest and not attempt to store the auth in the session.\n\ncc @richardnuno"},"comment":{"url":"https://api.github.com/repos/bonobos/spree/issues/comments/86561390","html_url":"https://github.com/bonobos/spree/pull/302#issuecomment-86561390","issue_url":"https://api.github.com/repos/bonobos/spree/issues/302","id":86561390,"user":{"login":"athal7","id":467872,"avatar_url":"https://avatars.githubusercontent.com/u/467872?v=3","gravatar_id":"","url":"https://api.github.com/users/athal7","html_url":"https://github.com/athal7","followers_url":"https://api.github.com/users/athal7/followers","following_url":"https://api.github.com/users/athal7/following{/other_user}","gists_url":"https://api.github.com/users/athal7/gists{/gist_id}","starred_url":"https://api.github.com/users/athal7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athal7/subscriptions","organizations_url":"https://api.github.com/users/athal7/orgs","repos_url":"https://api.github.com/users/athal7/repos","events_url":"https://api.github.com/users/athal7/events{/privacy}","received_events_url":"https://api.github.com/users/athal7/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T15:10:43Z","updated_at":"2015-03-26T15:10:43Z","body":"this approach makes sense to me."}}