{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/open-company/open-company-auth/pulls/1","id":44461188,"html_url":"https://github.com/open-company/open-company-auth/pull/1","diff_url":"https://github.com/open-company/open-company-auth/pull/1.diff","patch_url":"https://github.com/open-company/open-company-auth/pull/1.patch","issue_url":"https://api.github.com/repos/open-company/open-company-auth/issues/1","number":1,"state":"closed","locked":false,"title":"Jwt slack auth","user":{"login":"bago2k4","id":642704,"avatar_url":"https://avatars.githubusercontent.com/u/642704?v=3","gravatar_id":"","url":"https://api.github.com/users/bago2k4","html_url":"https://github.com/bago2k4","followers_url":"https://api.github.com/users/bago2k4/followers","following_url":"https://api.github.com/users/bago2k4/following{/other_user}","gists_url":"https://api.github.com/users/bago2k4/gists{/gist_id}","starred_url":"https://api.github.com/users/bago2k4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bago2k4/subscriptions","organizations_url":"https://api.github.com/users/bago2k4/orgs","repos_url":"https://api.github.com/users/bago2k4/repos","events_url":"https://api.github.com/users/bago2k4/events{/privacy}","received_events_url":"https://api.github.com/users/bago2k4/received_events","type":"User","site_admin":false},"body":"card: https://trello.com/c/Ee4lE6Dd\r\n\r\nreview with this:\r\nhttps://github.com/open-company/open-company-web/pull/24\r\n\r\nto test:\r\n- deploy this branch on staging (use auth-service branch of infrastructure)\r\n- deploy [user-auth](https://github.com/open-company/open-company-web/pull/24) branch of open-company-web too\r\n- open this page [https://staging.opencompany.io/login](https://staging.opencompany.io/login) on your browser\r\n- tap on the slack button\r\n- after you login with slack you should be redirected to https://staging.opencompany.io/companies\r\n- check the cookies, you should have one called `jwt` containing you token\r\n- check the last requests to the API server, all these should contains a `Authorization` cookie containing a value like `Bearer {you JWT token}`\r\n\r\ntests are TBD","created_at":"2015-09-08T17:41:20Z","updated_at":"2015-10-16T16:33:05Z","closed_at":"2015-10-16T16:33:05Z","merged_at":"2015-10-16T16:33:05Z","merge_commit_sha":"3662d784e1bd2d7e6191514c2432a93ec031d195","assignee":{"login":"belucid","id":12163,"avatar_url":"https://avatars.githubusercontent.com/u/12163?v=3","gravatar_id":"","url":"https://api.github.com/users/belucid","html_url":"https://github.com/belucid","followers_url":"https://api.github.com/users/belucid/followers","following_url":"https://api.github.com/users/belucid/following{/other_user}","gists_url":"https://api.github.com/users/belucid/gists{/gist_id}","starred_url":"https://api.github.com/users/belucid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belucid/subscriptions","organizations_url":"https://api.github.com/users/belucid/orgs","repos_url":"https://api.github.com/users/belucid/repos","events_url":"https://api.github.com/users/belucid/events{/privacy}","received_events_url":"https://api.github.com/users/belucid/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/open-company/open-company-auth/pulls/1/commits","review_comments_url":"https://api.github.com/repos/open-company/open-company-auth/pulls/1/comments","review_comment_url":"https://api.github.com/repos/open-company/open-company-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-company/open-company-auth/issues/1/comments","statuses_url":"https://api.github.com/repos/open-company/open-company-auth/statuses/4da72db27eb821dcd635eb70f57b01e3a90ad80f","head":{"label":"open-company:jwt-slack-auth","ref":"jwt-slack-auth","sha":"4da72db27eb821dcd635eb70f57b01e3a90ad80f","user":{"login":"open-company","id":13063090,"avatar_url":"https://avatars.githubusercontent.com/u/13063090?v=3","gravatar_id":"","url":"https://api.github.com/users/open-company","html_url":"https://github.com/open-company","followers_url":"https://api.github.com/users/open-company/followers","following_url":"https://api.github.com/users/open-company/following{/other_user}","gists_url":"https://api.github.com/users/open-company/gists{/gist_id}","starred_url":"https://api.github.com/users/open-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-company/subscriptions","organizations_url":"https://api.github.com/users/open-company/orgs","repos_url":"https://api.github.com/users/open-company/repos","events_url":"https://api.github.com/users/open-company/events{/privacy}","received_events_url":"https://api.github.com/users/open-company/received_events","type":"Organization","site_admin":false},"repo":{"id":42127267,"name":"open-company-auth","full_name":"open-company/open-company-auth","owner":{"login":"open-company","id":13063090,"avatar_url":"https://avatars.githubusercontent.com/u/13063090?v=3","gravatar_id":"","url":"https://api.github.com/users/open-company","html_url":"https://github.com/open-company","followers_url":"https://api.github.com/users/open-company/followers","following_url":"https://api.github.com/users/open-company/following{/other_user}","gists_url":"https://api.github.com/users/open-company/gists{/gist_id}","starred_url":"https://api.github.com/users/open-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-company/subscriptions","organizations_url":"https://api.github.com/users/open-company/orgs","repos_url":"https://api.github.com/users/open-company/repos","events_url":"https://api.github.com/users/open-company/events{/privacy}","received_events_url":"https://api.github.com/users/open-company/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-company/open-company-auth","description":"OpenCompany.io Auth Application","fork":false,"url":"https://api.github.com/repos/open-company/open-company-auth","forks_url":"https://api.github.com/repos/open-company/open-company-auth/forks","keys_url":"https://api.github.com/repos/open-company/open-company-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-company/open-company-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-company/open-company-auth/teams","hooks_url":"https://api.github.com/repos/open-company/open-company-auth/hooks","issue_events_url":"https://api.github.com/repos/open-company/open-company-auth/issues/events{/number}","events_url":"https://api.github.com/repos/open-company/open-company-auth/events","assignees_url":"https://api.github.com/repos/open-company/open-company-auth/assignees{/user}","branches_url":"https://api.github.com/repos/open-company/open-company-auth/branches{/branch}","tags_url":"https://api.github.com/repos/open-company/open-company-auth/tags","blobs_url":"https://api.github.com/repos/open-company/open-company-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-company/open-company-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-company/open-company-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-company/open-company-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-company/open-company-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/open-company/open-company-auth/languages","stargazers_url":"https://api.github.com/repos/open-company/open-company-auth/stargazers","contributors_url":"https://api.github.com/repos/open-company/open-company-auth/contributors","subscribers_url":"https://api.github.com/repos/open-company/open-company-auth/subscribers","subscription_url":"https://api.github.com/repos/open-company/open-company-auth/subscription","commits_url":"https://api.github.com/repos/open-company/open-company-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-company/open-company-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-company/open-company-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-company/open-company-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-company/open-company-auth/contents/{+path}","compare_url":"https://api.github.com/repos/open-company/open-company-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-company/open-company-auth/merges","archive_url":"https://api.github.com/repos/open-company/open-company-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-company/open-company-auth/downloads","issues_url":"https://api.github.com/repos/open-company/open-company-auth/issues{/number}","pulls_url":"https://api.github.com/repos/open-company/open-company-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/open-company/open-company-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/open-company/open-company-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-company/open-company-auth/labels{/name}","releases_url":"https://api.github.com/repos/open-company/open-company-auth/releases{/id}","created_at":"2015-09-08T17:14:55Z","updated_at":"2015-10-13T10:48:10Z","pushed_at":"2015-10-16T16:33:05Z","git_url":"git://github.com/open-company/open-company-auth.git","ssh_url":"git@github.com:open-company/open-company-auth.git","clone_url":"https://github.com/open-company/open-company-auth.git","svn_url":"https://github.com/open-company/open-company-auth","homepage":"https://opencompany.io","size":260,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"mainline"}},"base":{"label":"open-company:mainline","ref":"mainline","sha":"6789cf6aa16aedf6a607f77256bda0e6e902573f","user":{"login":"open-company","id":13063090,"avatar_url":"https://avatars.githubusercontent.com/u/13063090?v=3","gravatar_id":"","url":"https://api.github.com/users/open-company","html_url":"https://github.com/open-company","followers_url":"https://api.github.com/users/open-company/followers","following_url":"https://api.github.com/users/open-company/following{/other_user}","gists_url":"https://api.github.com/users/open-company/gists{/gist_id}","starred_url":"https://api.github.com/users/open-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-company/subscriptions","organizations_url":"https://api.github.com/users/open-company/orgs","repos_url":"https://api.github.com/users/open-company/repos","events_url":"https://api.github.com/users/open-company/events{/privacy}","received_events_url":"https://api.github.com/users/open-company/received_events","type":"Organization","site_admin":false},"repo":{"id":42127267,"name":"open-company-auth","full_name":"open-company/open-company-auth","owner":{"login":"open-company","id":13063090,"avatar_url":"https://avatars.githubusercontent.com/u/13063090?v=3","gravatar_id":"","url":"https://api.github.com/users/open-company","html_url":"https://github.com/open-company","followers_url":"https://api.github.com/users/open-company/followers","following_url":"https://api.github.com/users/open-company/following{/other_user}","gists_url":"https://api.github.com/users/open-company/gists{/gist_id}","starred_url":"https://api.github.com/users/open-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-company/subscriptions","organizations_url":"https://api.github.com/users/open-company/orgs","repos_url":"https://api.github.com/users/open-company/repos","events_url":"https://api.github.com/users/open-company/events{/privacy}","received_events_url":"https://api.github.com/users/open-company/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-company/open-company-auth","description":"OpenCompany.io Auth Application","fork":false,"url":"https://api.github.com/repos/open-company/open-company-auth","forks_url":"https://api.github.com/repos/open-company/open-company-auth/forks","keys_url":"https://api.github.com/repos/open-company/open-company-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-company/open-company-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-company/open-company-auth/teams","hooks_url":"https://api.github.com/repos/open-company/open-company-auth/hooks","issue_events_url":"https://api.github.com/repos/open-company/open-company-auth/issues/events{/number}","events_url":"https://api.github.com/repos/open-company/open-company-auth/events","assignees_url":"https://api.github.com/repos/open-company/open-company-auth/assignees{/user}","branches_url":"https://api.github.com/repos/open-company/open-company-auth/branches{/branch}","tags_url":"https://api.github.com/repos/open-company/open-company-auth/tags","blobs_url":"https://api.github.com/repos/open-company/open-company-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-company/open-company-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-company/open-company-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-company/open-company-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-company/open-company-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/open-company/open-company-auth/languages","stargazers_url":"https://api.github.com/repos/open-company/open-company-auth/stargazers","contributors_url":"https://api.github.com/repos/open-company/open-company-auth/contributors","subscribers_url":"https://api.github.com/repos/open-company/open-company-auth/subscribers","subscription_url":"https://api.github.com/repos/open-company/open-company-auth/subscription","commits_url":"https://api.github.com/repos/open-company/open-company-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-company/open-company-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-company/open-company-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-company/open-company-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-company/open-company-auth/contents/{+path}","compare_url":"https://api.github.com/repos/open-company/open-company-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-company/open-company-auth/merges","archive_url":"https://api.github.com/repos/open-company/open-company-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-company/open-company-auth/downloads","issues_url":"https://api.github.com/repos/open-company/open-company-auth/issues{/number}","pulls_url":"https://api.github.com/repos/open-company/open-company-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/open-company/open-company-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/open-company/open-company-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-company/open-company-auth/labels{/name}","releases_url":"https://api.github.com/repos/open-company/open-company-auth/releases{/id}","created_at":"2015-09-08T17:14:55Z","updated_at":"2015-10-13T10:48:10Z","pushed_at":"2015-10-16T16:33:05Z","git_url":"git://github.com/open-company/open-company-auth.git","ssh_url":"git@github.com:open-company/open-company-auth.git","clone_url":"https://github.com/open-company/open-company-auth.git","svn_url":"https://github.com/open-company/open-company-auth","homepage":"https://opencompany.io","size":260,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"mainline"}},"_links":{"self":{"href":"https://api.github.com/repos/open-company/open-company-auth/pulls/1"},"html":{"href":"https://github.com/open-company/open-company-auth/pull/1"},"issue":{"href":"https://api.github.com/repos/open-company/open-company-auth/issues/1"},"comments":{"href":"https://api.github.com/repos/open-company/open-company-auth/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/open-company/open-company-auth/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/open-company/open-company-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-company/open-company-auth/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/open-company/open-company-auth/statuses/4da72db27eb821dcd635eb70f57b01e3a90ad80f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"belucid","id":12163,"avatar_url":"https://avatars.githubusercontent.com/u/12163?v=3","gravatar_id":"","url":"https://api.github.com/users/belucid","html_url":"https://github.com/belucid","followers_url":"https://api.github.com/users/belucid/followers","following_url":"https://api.github.com/users/belucid/following{/other_user}","gists_url":"https://api.github.com/users/belucid/gists{/gist_id}","starred_url":"https://api.github.com/users/belucid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belucid/subscriptions","organizations_url":"https://api.github.com/users/belucid/orgs","repos_url":"https://api.github.com/users/belucid/repos","events_url":"https://api.github.com/users/belucid/events{/privacy}","received_events_url":"https://api.github.com/users/belucid/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"commits":40,"additions":639,"deletions":1,"changed_files":15}}