{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/5","id":173528543,"html_url":"https://github.com/revolunet/react-analytics-widget/pull/5","diff_url":"https://github.com/revolunet/react-analytics-widget/pull/5.diff","patch_url":"https://github.com/revolunet/react-analytics-widget/pull/5.patch","issue_url":"https://api.github.com/repos/revolunet/react-analytics-widget/issues/5","number":5,"state":"closed","locked":false,"title":"Added support for server-side auth","user":{"login":"vascofg","id":634441,"avatar_url":"https://avatars2.githubusercontent.com/u/634441?v=4","gravatar_id":"","url":"https://api.github.com/users/vascofg","html_url":"https://github.com/vascofg","followers_url":"https://api.github.com/users/vascofg/followers","following_url":"https://api.github.com/users/vascofg/following{/other_user}","gists_url":"https://api.github.com/users/vascofg/gists{/gist_id}","starred_url":"https://api.github.com/users/vascofg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vascofg/subscriptions","organizations_url":"https://api.github.com/users/vascofg/orgs","repos_url":"https://api.github.com/users/vascofg/repos","events_url":"https://api.github.com/users/vascofg/events{/privacy}","received_events_url":"https://api.github.com/users/vascofg/received_events","type":"User","site_admin":false},"body":"As discussed in #4, I've found a solution for automatically authenticating users.\r\nIn my case I have my own authentication scheme for a back-office application where I want to show analytics and it doesn't make sense to have the user authenticating twice.\r\nI've found this [example](https://ga-dev-tools.appspot.com/embed-api/server-side-authorization/) which explains this mechanism in detail.","created_at":"2018-03-07T17:57:08Z","updated_at":"2018-03-12T16:30:43Z","closed_at":"2018-03-12T16:30:43Z","merged_at":"2018-03-12T16:30:42Z","merge_commit_sha":"0fb737c2ff29be6c948e970dbabdc3eb8f1fa5ce","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/5/commits","review_comments_url":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/5/comments","review_comment_url":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/revolunet/react-analytics-widget/issues/5/comments","statuses_url":"https://api.github.com/repos/revolunet/react-analytics-widget/statuses/fe4dcc28851aa1e61fc7f48931a112db818af594","head":{"label":"vascofg:master","ref":"master","sha":"fe4dcc28851aa1e61fc7f48931a112db818af594","user":{"login":"vascofg","id":634441,"avatar_url":"https://avatars2.githubusercontent.com/u/634441?v=4","gravatar_id":"","url":"https://api.github.com/users/vascofg","html_url":"https://github.com/vascofg","followers_url":"https://api.github.com/users/vascofg/followers","following_url":"https://api.github.com/users/vascofg/following{/other_user}","gists_url":"https://api.github.com/users/vascofg/gists{/gist_id}","starred_url":"https://api.github.com/users/vascofg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vascofg/subscriptions","organizations_url":"https://api.github.com/users/vascofg/orgs","repos_url":"https://api.github.com/users/vascofg/repos","events_url":"https://api.github.com/users/vascofg/events{/privacy}","received_events_url":"https://api.github.com/users/vascofg/received_events","type":"User","site_admin":false},"repo":{"id":124273314,"name":"react-analytics-widget","full_name":"vascofg/react-analytics-widget","owner":{"login":"vascofg","id":634441,"avatar_url":"https://avatars2.githubusercontent.com/u/634441?v=4","gravatar_id":"","url":"https://api.github.com/users/vascofg","html_url":"https://github.com/vascofg","followers_url":"https://api.github.com/users/vascofg/followers","following_url":"https://api.github.com/users/vascofg/following{/other_user}","gists_url":"https://api.github.com/users/vascofg/gists{/gist_id}","starred_url":"https://api.github.com/users/vascofg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vascofg/subscriptions","organizations_url":"https://api.github.com/users/vascofg/orgs","repos_url":"https://api.github.com/users/vascofg/repos","events_url":"https://api.github.com/users/vascofg/events{/privacy}","received_events_url":"https://api.github.com/users/vascofg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vascofg/react-analytics-widget","description":"Embed Google Analytics widgets in your React applications.","fork":true,"url":"https://api.github.com/repos/vascofg/react-analytics-widget","forks_url":"https://api.github.com/repos/vascofg/react-analytics-widget/forks","keys_url":"https://api.github.com/repos/vascofg/react-analytics-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vascofg/react-analytics-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vascofg/react-analytics-widget/teams","hooks_url":"https://api.github.com/repos/vascofg/react-analytics-widget/hooks","issue_events_url":"https://api.github.com/repos/vascofg/react-analytics-widget/issues/events{/number}","events_url":"https://api.github.com/repos/vascofg/react-analytics-widget/events","assignees_url":"https://api.github.com/repos/vascofg/react-analytics-widget/assignees{/user}","branches_url":"https://api.github.com/repos/vascofg/react-analytics-widget/branches{/branch}","tags_url":"https://api.github.com/repos/vascofg/react-analytics-widget/tags","blobs_url":"https://api.github.com/repos/vascofg/react-analytics-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vascofg/react-analytics-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vascofg/react-analytics-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/vascofg/react-analytics-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vascofg/react-analytics-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/vascofg/react-analytics-widget/languages","stargazers_url":"https://api.github.com/repos/vascofg/react-analytics-widget/stargazers","contributors_url":"https://api.github.com/repos/vascofg/react-analytics-widget/contributors","subscribers_url":"https://api.github.com/repos/vascofg/react-analytics-widget/subscribers","subscription_url":"https://api.github.com/repos/vascofg/react-analytics-widget/subscription","commits_url":"https://api.github.com/repos/vascofg/react-analytics-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/vascofg/react-analytics-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/vascofg/react-analytics-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/vascofg/react-analytics-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/vascofg/react-analytics-widget/contents/{+path}","compare_url":"https://api.github.com/repos/vascofg/react-analytics-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vascofg/react-analytics-widget/merges","archive_url":"https://api.github.com/repos/vascofg/react-analytics-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vascofg/react-analytics-widget/downloads","issues_url":"https://api.github.com/repos/vascofg/react-analytics-widget/issues{/number}","pulls_url":"https://api.github.com/repos/vascofg/react-analytics-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/vascofg/react-analytics-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/vascofg/react-analytics-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vascofg/react-analytics-widget/labels{/name}","releases_url":"https://api.github.com/repos/vascofg/react-analytics-widget/releases{/id}","deployments_url":"https://api.github.com/repos/vascofg/react-analytics-widget/deployments","created_at":"2018-03-07T17:52:10Z","updated_at":"2018-03-07T17:52:12Z","pushed_at":"2018-03-09T17:26:54Z","git_url":"git://github.com/vascofg/react-analytics-widget.git","ssh_url":"git@github.com:vascofg/react-analytics-widget.git","clone_url":"https://github.com/vascofg/react-analytics-widget.git","svn_url":"https://github.com/vascofg/react-analytics-widget","homepage":"https://revolunet.github.io/react-analytics-widget","size":725,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"revolunet:master","ref":"master","sha":"bf3abe3b952dc2f1b6b1609f549fc6817b71cba6","user":{"login":"revolunet","id":124937,"avatar_url":"https://avatars0.githubusercontent.com/u/124937?v=4","gravatar_id":"","url":"https://api.github.com/users/revolunet","html_url":"https://github.com/revolunet","followers_url":"https://api.github.com/users/revolunet/followers","following_url":"https://api.github.com/users/revolunet/following{/other_user}","gists_url":"https://api.github.com/users/revolunet/gists{/gist_id}","starred_url":"https://api.github.com/users/revolunet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revolunet/subscriptions","organizations_url":"https://api.github.com/users/revolunet/orgs","repos_url":"https://api.github.com/users/revolunet/repos","events_url":"https://api.github.com/users/revolunet/events{/privacy}","received_events_url":"https://api.github.com/users/revolunet/received_events","type":"User","site_admin":false},"repo":{"id":97532882,"name":"react-analytics-widget","full_name":"revolunet/react-analytics-widget","owner":{"login":"revolunet","id":124937,"avatar_url":"https://avatars0.githubusercontent.com/u/124937?v=4","gravatar_id":"","url":"https://api.github.com/users/revolunet","html_url":"https://github.com/revolunet","followers_url":"https://api.github.com/users/revolunet/followers","following_url":"https://api.github.com/users/revolunet/following{/other_user}","gists_url":"https://api.github.com/users/revolunet/gists{/gist_id}","starred_url":"https://api.github.com/users/revolunet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revolunet/subscriptions","organizations_url":"https://api.github.com/users/revolunet/orgs","repos_url":"https://api.github.com/users/revolunet/repos","events_url":"https://api.github.com/users/revolunet/events{/privacy}","received_events_url":"https://api.github.com/users/revolunet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/revolunet/react-analytics-widget","description":"Embed Google Analytics widgets in your React applications.","fork":false,"url":"https://api.github.com/repos/revolunet/react-analytics-widget","forks_url":"https://api.github.com/repos/revolunet/react-analytics-widget/forks","keys_url":"https://api.github.com/repos/revolunet/react-analytics-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/revolunet/react-analytics-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/revolunet/react-analytics-widget/teams","hooks_url":"https://api.github.com/repos/revolunet/react-analytics-widget/hooks","issue_events_url":"https://api.github.com/repos/revolunet/react-analytics-widget/issues/events{/number}","events_url":"https://api.github.com/repos/revolunet/react-analytics-widget/events","assignees_url":"https://api.github.com/repos/revolunet/react-analytics-widget/assignees{/user}","branches_url":"https://api.github.com/repos/revolunet/react-analytics-widget/branches{/branch}","tags_url":"https://api.github.com/repos/revolunet/react-analytics-widget/tags","blobs_url":"https://api.github.com/repos/revolunet/react-analytics-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/revolunet/react-analytics-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/revolunet/react-analytics-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/revolunet/react-analytics-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/revolunet/react-analytics-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/revolunet/react-analytics-widget/languages","stargazers_url":"https://api.github.com/repos/revolunet/react-analytics-widget/stargazers","contributors_url":"https://api.github.com/repos/revolunet/react-analytics-widget/contributors","subscribers_url":"https://api.github.com/repos/revolunet/react-analytics-widget/subscribers","subscription_url":"https://api.github.com/repos/revolunet/react-analytics-widget/subscription","commits_url":"https://api.github.com/repos/revolunet/react-analytics-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/revolunet/react-analytics-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/revolunet/react-analytics-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/revolunet/react-analytics-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/revolunet/react-analytics-widget/contents/{+path}","compare_url":"https://api.github.com/repos/revolunet/react-analytics-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/revolunet/react-analytics-widget/merges","archive_url":"https://api.github.com/repos/revolunet/react-analytics-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/revolunet/react-analytics-widget/downloads","issues_url":"https://api.github.com/repos/revolunet/react-analytics-widget/issues{/number}","pulls_url":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/revolunet/react-analytics-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/revolunet/react-analytics-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/revolunet/react-analytics-widget/labels{/name}","releases_url":"https://api.github.com/repos/revolunet/react-analytics-widget/releases{/id}","deployments_url":"https://api.github.com/repos/revolunet/react-analytics-widget/deployments","created_at":"2017-07-18T00:02:16Z","updated_at":"2018-03-07T18:09:09Z","pushed_at":"2018-03-12T16:30:42Z","git_url":"git://github.com/revolunet/react-analytics-widget.git","ssh_url":"git@github.com:revolunet/react-analytics-widget.git","clone_url":"https://github.com/revolunet/react-analytics-widget.git","svn_url":"https://github.com/revolunet/react-analytics-widget","homepage":"https://revolunet.github.io/react-analytics-widget","size":640,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":4,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/5"},"html":{"href":"https://github.com/revolunet/react-analytics-widget/pull/5"},"issue":{"href":"https://api.github.com/repos/revolunet/react-analytics-widget/issues/5"},"comments":{"href":"https://api.github.com/repos/revolunet/react-analytics-widget/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/revolunet/react-analytics-widget/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/revolunet/react-analytics-widget/statuses/fe4dcc28851aa1e61fc7f48931a112db818af594"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"revolunet","id":124937,"avatar_url":"https://avatars0.githubusercontent.com/u/124937?v=4","gravatar_id":"","url":"https://api.github.com/users/revolunet","html_url":"https://github.com/revolunet","followers_url":"https://api.github.com/users/revolunet/followers","following_url":"https://api.github.com/users/revolunet/following{/other_user}","gists_url":"https://api.github.com/users/revolunet/gists{/gist_id}","starred_url":"https://api.github.com/users/revolunet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revolunet/subscriptions","organizations_url":"https://api.github.com/users/revolunet/orgs","repos_url":"https://api.github.com/users/revolunet/repos","events_url":"https://api.github.com/users/revolunet/events{/privacy}","received_events_url":"https://api.github.com/users/revolunet/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":14006,"deletions":99,"changed_files":4}}
{"actor":{"display_login":"revolunet"}}