{"action":"closed","number":352,"pull_request":{"url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/352","id":228009593,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MDA5NTkz","html_url":"https://github.com/crdschurch/crds-fred/pull/352","diff_url":"https://github.com/crdschurch/crds-fred/pull/352.diff","patch_url":"https://github.com/crdschurch/crds-fred/pull/352.patch","issue_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/352","number":352,"state":"closed","locked":false,"title":"Feature/us15327 expired auth tokens","user":{"login":"andycanterbury","id":10052615,"node_id":"MDQ6VXNlcjEwMDUyNjE1","avatar_url":"https://avatars2.githubusercontent.com/u/10052615?v=4","gravatar_id":"","url":"https://api.github.com/users/andycanterbury","html_url":"https://github.com/andycanterbury","followers_url":"https://api.github.com/users/andycanterbury/followers","following_url":"https://api.github.com/users/andycanterbury/following{/other_user}","gists_url":"https://api.github.com/users/andycanterbury/gists{/gist_id}","starred_url":"https://api.github.com/users/andycanterbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andycanterbury/subscriptions","organizations_url":"https://api.github.com/users/andycanterbury/orgs","repos_url":"https://api.github.com/users/andycanterbury/repos","events_url":"https://api.github.com/users/andycanterbury/events{/privacy}","received_events_url":"https://api.github.com/users/andycanterbury/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nFix the problem of user's tokens expiring and requiring them to log out and back in. \r\n\r\n## Approach\r\nWhen a request comes in, check if their token is expired or close to expiring and refresh it as needed. Then send the updated token back in the response header so the client can use it next time. \r\n\r\n## Learning\r\nOther projects have used an Authorized() method on an override of the Controller class, but for this .net core project, using the auth middleware allowed us to avoid having to change every controller. ","created_at":"2018-11-02T17:35:37Z","updated_at":"2018-11-02T19:38:58Z","closed_at":"2018-11-02T19:38:58Z","merged_at":"2018-11-02T19:38:58Z","merge_commit_sha":"e240dcfdeb423f3ceb12e6af929cb56b1924d0c2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/352/commits","review_comments_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/352/comments","review_comment_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/352/comments","statuses_url":"https://api.github.com/repos/crdschurch/crds-fred/statuses/b56e57eb257ed0ba2b1c80585a5b587fab47e203","head":{"label":"crdschurch:feature/US15327-ExpiredAuthTokens","ref":"feature/US15327-ExpiredAuthTokens","sha":"b56e57eb257ed0ba2b1c80585a5b587fab47e203","user":{"login":"crdschurch","id":1843144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDMxNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":101102913,"node_id":"MDEwOlJlcG9zaXRvcnkxMDExMDI5MTM=","name":"crds-fred","full_name":"crdschurch/crds-fred","private":false,"owner":{"login":"crdschurch","id":1843144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDMxNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/crdschurch/crds-fred","description":"Forms Real Easily Done","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-fred","forks_url":"https://api.github.com/repos/crdschurch/crds-fred/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-fred/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-fred/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-fred/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-fred/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-fred/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-fred/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-fred/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-fred/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-fred/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-fred/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-fred/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-fred/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-fred/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-fred/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-fred/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-fred/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-fred/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-fred/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-fred/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-fred/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-fred/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-fred/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-fred/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-fred/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-fred/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-fred/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-fred/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-fred/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-fred/releases{/id}","deployments_url":"https://api.github.com/repos/crdschurch/crds-fred/deployments","created_at":"2017-08-22T20:08:00Z","updated_at":"2018-11-02T18:22:19Z","pushed_at":"2018-11-02T19:38:58Z","git_url":"git://github.com/crdschurch/crds-fred.git","ssh_url":"git@github.com:crdschurch/crds-fred.git","clone_url":"https://github.com/crdschurch/crds-fred.git","svn_url":"https://github.com/crdschurch/crds-fred","homepage":null,"size":2892,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"crdschurch:development","ref":"development","sha":"dc3cd2c7b7f51fba861921b0b0c17a877a560e2e","user":{"login":"crdschurch","id":1843144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDMxNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":101102913,"node_id":"MDEwOlJlcG9zaXRvcnkxMDExMDI5MTM=","name":"crds-fred","full_name":"crdschurch/crds-fred","private":false,"owner":{"login":"crdschurch","id":1843144,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDMxNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/crdschurch/crds-fred","description":"Forms Real Easily Done","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-fred","forks_url":"https://api.github.com/repos/crdschurch/crds-fred/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-fred/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-fred/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-fred/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-fred/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-fred/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-fred/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-fred/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-fred/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-fred/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-fred/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-fred/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-fred/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-fred/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-fred/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-fred/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-fred/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-fred/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-fred/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-fred/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-fred/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-fred/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-fred/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-fred/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-fred/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-fred/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-fred/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-fred/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-fred/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-fred/releases{/id}","deployments_url":"https://api.github.com/repos/crdschurch/crds-fred/deployments","created_at":"2017-08-22T20:08:00Z","updated_at":"2018-11-02T18:22:19Z","pushed_at":"2018-11-02T19:38:58Z","git_url":"git://github.com/crdschurch/crds-fred.git","ssh_url":"git@github.com:crdschurch/crds-fred.git","clone_url":"https://github.com/crdschurch/crds-fred.git","svn_url":"https://github.com/crdschurch/crds-fred","homepage":null,"size":2892,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/352"},"html":{"href":"https://github.com/crdschurch/crds-fred/pull/352"},"issue":{"href":"https://api.github.com/repos/crdschurch/crds-fred/issues/352"},"comments":{"href":"https://api.github.com/repos/crdschurch/crds-fred/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/crdschurch/crds-fred/statuses/b56e57eb257ed0ba2b1c80585a5b587fab47e203"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"vchtelmakh","id":22355063,"node_id":"MDQ6VXNlcjIyMzU1MDYz","avatar_url":"https://avatars3.githubusercontent.com/u/22355063?v=4","gravatar_id":"","url":"https://api.github.com/users/vchtelmakh","html_url":"https://github.com/vchtelmakh","followers_url":"https://api.github.com/users/vchtelmakh/followers","following_url":"https://api.github.com/users/vchtelmakh/following{/other_user}","gists_url":"https://api.github.com/users/vchtelmakh/gists{/gist_id}","starred_url":"https://api.github.com/users/vchtelmakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchtelmakh/subscriptions","organizations_url":"https://api.github.com/users/vchtelmakh/orgs","repos_url":"https://api.github.com/users/vchtelmakh/repos","events_url":"https://api.github.com/users/vchtelmakh/events{/privacy}","received_events_url":"https://api.github.com/users/vchtelmakh/received_events","type":"User","site_admin":false},"comments":0,"review_comments":4,"maintainer_can_modify":false,"commits":6,"additions":107,"deletions":7,"changed_files":7}}
{"actor":{"display_login":"vchtelmakh"}}