{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/passport/issues/642","repository_url":"https://api.github.com/repos/laravel/passport","labels_url":"https://api.github.com/repos/laravel/passport/issues/642/labels{/name}","comments_url":"https://api.github.com/repos/laravel/passport/issues/642/comments","events_url":"https://api.github.com/repos/laravel/passport/issues/642/events","html_url":"https://github.com/laravel/passport/pull/642","id":298447452,"number":642,"title":"TokenGuard did not check for x-xsrf-token header","user":{"login":"itsUndefined","id":29482493,"avatar_url":"https://avatars2.githubusercontent.com/u/29482493?v=4","gravatar_id":"","url":"https://api.github.com/users/itsUndefined","html_url":"https://github.com/itsUndefined","followers_url":"https://api.github.com/users/itsUndefined/followers","following_url":"https://api.github.com/users/itsUndefined/following{/other_user}","gists_url":"https://api.github.com/users/itsUndefined/gists{/gist_id}","starred_url":"https://api.github.com/users/itsUndefined/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsUndefined/subscriptions","organizations_url":"https://api.github.com/users/itsUndefined/orgs","repos_url":"https://api.github.com/users/itsUndefined/repos","events_url":"https://api.github.com/users/itsUndefined/events{/privacy}","received_events_url":"https://api.github.com/users/itsUndefined/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T01:41:24Z","updated_at":"2018-02-20T15:41:21Z","closed_at":"2018-02-20T13:39:09Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/laravel/passport/pulls/642","html_url":"https://github.com/laravel/passport/pull/642","diff_url":"https://github.com/laravel/passport/pull/642.diff","patch_url":"https://github.com/laravel/passport/pull/642.patch"},"body":"If you are using an SPA and trying to consume your own API, it's impossible to use the blade engine to get the unencrypted CSRF token. Other middleware uses the header X-XSRF-TOKEN to get the encrypted token from the cookie.  I did the same in the token guard. The PR for laravel with code [#4128](https://github.com/laravel/laravel/pull/4128) had questioned whether or not passport should get updated to support this but no one got into it."},"comment":{"url":"https://api.github.com/repos/laravel/passport/issues/comments/367018231","html_url":"https://github.com/laravel/passport/pull/642#issuecomment-367018231","issue_url":"https://api.github.com/repos/laravel/passport/issues/642","id":367018231,"user":{"login":"itsUndefined","id":29482493,"avatar_url":"https://avatars2.githubusercontent.com/u/29482493?v=4","gravatar_id":"","url":"https://api.github.com/users/itsUndefined","html_url":"https://github.com/itsUndefined","followers_url":"https://api.github.com/users/itsUndefined/followers","following_url":"https://api.github.com/users/itsUndefined/following{/other_user}","gists_url":"https://api.github.com/users/itsUndefined/gists{/gist_id}","starred_url":"https://api.github.com/users/itsUndefined/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsUndefined/subscriptions","organizations_url":"https://api.github.com/users/itsUndefined/orgs","repos_url":"https://api.github.com/users/itsUndefined/repos","events_url":"https://api.github.com/users/itsUndefined/events{/privacy}","received_events_url":"https://api.github.com/users/itsUndefined/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T15:41:21Z","updated_at":"2018-02-20T15:41:21Z","author_association":"CONTRIBUTOR","body":"Does that mean that the web routes, that have this X-XSRF-TOKEN header implemented, are vulnerable?"}}
{"actor":{"display_login":"itsUndefined"}}