{"action":"created","issue":{"url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/issues/38","repository_url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox","labels_url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/issues/38/comments","events_url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/issues/38/events","html_url":"https://github.com/NYPL-discovery/discovery-sandbox/pull/38","id":188359222,"number":38,"title":"Logged in state server","user":{"login":"EdwinGuzman","id":1280564,"avatar_url":"https://avatars.githubusercontent.com/u/1280564?v=3","gravatar_id":"","url":"https://api.github.com/users/EdwinGuzman","html_url":"https://github.com/EdwinGuzman","followers_url":"https://api.github.com/users/EdwinGuzman/followers","following_url":"https://api.github.com/users/EdwinGuzman/following{/other_user}","gists_url":"https://api.github.com/users/EdwinGuzman/gists{/gist_id}","starred_url":"https://api.github.com/users/EdwinGuzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdwinGuzman/subscriptions","organizations_url":"https://api.github.com/users/EdwinGuzman/orgs","repos_url":"https://api.github.com/users/EdwinGuzman/repos","events_url":"https://api.github.com/users/EdwinGuzman/events{/privacy}","received_events_url":"https://api.github.com/users/EdwinGuzman/received_events","type":"User","site_admin":false},"labels":[{"id":455722063,"url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-09T21:39:23Z","updated_at":"2016-11-10T16:11:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/pulls/38","html_url":"https://github.com/NYPL-discovery/discovery-sandbox/pull/38","diff_url":"https://github.com/NYPL-discovery/discovery-sandbox/pull/38.diff","patch_url":"https://github.com/NYPL-discovery/discovery-sandbox/pull/38.patch"},"body":"A functional version of login through the Header and being logged in through the app. Simple version with no sessions involved yet (something that we would need to work on with Rafael). Currently, it's a layer that is being trigger before  a route is visited and doesn't do anything if there is no json web token.\r\n\r\nTo test:\r\n\r\n- since it's a working branch of the header, `npm install` the new dependencies.\r\n- In the browser console add `dgxFeatureFlags.activateFeature('oauth-login');` to get the oauth links in the header.\r\n- Log in by clicking on the catalog link (I can give you test credentials).\r\n- You will have to navigate back to local.nypl.org:3001 (local url set up so that the local server can read the nypl-domain specific cookie).\r\n\r\nI'm thinking that now that the app knows whether a patron is logged in or not, it can be used to display a message to the user on the item hold page to log in. That data would need to be passed down from the top level to the ItemPage component.\r\n"},"comment":{"url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/issues/comments/259731734","html_url":"https://github.com/NYPL-discovery/discovery-sandbox/pull/38#issuecomment-259731734","issue_url":"https://api.github.com/repos/NYPL-discovery/discovery-sandbox/issues/38","id":259731734,"user":{"login":"beefoo","id":67169,"avatar_url":"https://avatars.githubusercontent.com/u/67169?v=3","gravatar_id":"","url":"https://api.github.com/users/beefoo","html_url":"https://github.com/beefoo","followers_url":"https://api.github.com/users/beefoo/followers","following_url":"https://api.github.com/users/beefoo/following{/other_user}","gists_url":"https://api.github.com/users/beefoo/gists{/gist_id}","starred_url":"https://api.github.com/users/beefoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beefoo/subscriptions","organizations_url":"https://api.github.com/users/beefoo/orgs","repos_url":"https://api.github.com/users/beefoo/repos","events_url":"https://api.github.com/users/beefoo/events{/privacy}","received_events_url":"https://api.github.com/users/beefoo/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T16:11:21Z","updated_at":"2016-11-10T16:11:21Z","body":"Great, this works for me. Merging"}}
{"actor":{"display_login":"beefoo"}}