{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/157","repository_url":"https://api.github.com/repos/strongloop/loopback-component-passport","labels_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/157/comments","events_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/157/events","html_url":"https://github.com/strongloop/loopback-component-passport/pull/157","id":156881038,"number":157,"title":"Option to append access token to success redirect URL","user":{"login":"jeff3yan","id":6830108,"avatar_url":"https://avatars.githubusercontent.com/u/6830108?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff3yan","html_url":"https://github.com/jeff3yan","followers_url":"https://api.github.com/users/jeff3yan/followers","following_url":"https://api.github.com/users/jeff3yan/following{/other_user}","gists_url":"https://api.github.com/users/jeff3yan/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff3yan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff3yan/subscriptions","organizations_url":"https://api.github.com/users/jeff3yan/orgs","repos_url":"https://api.github.com/users/jeff3yan/repos","events_url":"https://api.github.com/users/jeff3yan/events{/privacy}","received_events_url":"https://api.github.com/users/jeff3yan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-26T00:47:45Z","updated_at":"2016-05-26T00:47:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/157","html_url":"https://github.com/strongloop/loopback-component-passport/pull/157","diff_url":"https://github.com/strongloop/loopback-component-passport/pull/157.diff","patch_url":"https://github.com/strongloop/loopback-component-passport/pull/157.patch"},"body":"Added an option for appending the access token as a query parameter on the success redirect URL. Similar to this [fork](https://github.com/asvdw/loopback-component-passport/commit/300579dd4b3157352b98eea831276cff890fb627), but with a config option `redirectWithToken`.\r\n\r\nThis was desired due to loopback-component-passport 3rd party login only supporting access token setting via cookies, which isn't feasible when the front-end and API are on different domains.\r\n\r\nSimilar in intent to #102, but it allows continued usage of the `returnTo` query parameter and is useful for apps that may have dynamic redirects on separate domains.\r\n\r\nreturn res.redirect(successRedirect(req) + (options.redirectWithToken ? '?access_token=' + info.accessToken.id : ''));"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/comments/221749130","html_url":"https://github.com/strongloop/loopback-component-passport/pull/157#issuecomment-221749130","issue_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/157","id":221749130,"user":{"login":"slnode","id":3865961,"avatar_url":"https://avatars.githubusercontent.com/u/3865961?v=3","gravatar_id":"","url":"https://api.github.com/users/slnode","html_url":"https://github.com/slnode","followers_url":"https://api.github.com/users/slnode/followers","following_url":"https://api.github.com/users/slnode/following{/other_user}","gists_url":"https://api.github.com/users/slnode/gists{/gist_id}","starred_url":"https://api.github.com/users/slnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnode/subscriptions","organizations_url":"https://api.github.com/users/slnode/orgs","repos_url":"https://api.github.com/users/slnode/repos","events_url":"https://api.github.com/users/slnode/events{/privacy}","received_events_url":"https://api.github.com/users/slnode/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T00:47:46Z","updated_at":"2016-05-26T00:47:46Z","body":"Can one of the admins verify this patch? To accept patch and trigger a build add comment \".*ok\\W+to\\W+test.*\""}}
{"actor":{"display_login":"slnode"}}