{"action":"created","comment":{"url":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments/38963767","id":38963767,"diff_hunk":"@@ -44,9 +44,13 @@\n \n   # Configures a user as an administrator\n   config.admin_user_name = \"mvanneve\"\n+\n+  # Configures time before user is logged out due to inactivity\n+  config.user_timeout = 24.hours\n end\n \n Devise.setup do |config|\n   # CAS auth\n   config.cas_base_url = 'https://cas.library.nd.edu/cas'\n+  config.cas_login_url = 'https://cas.library.nd.edu/cas/login?renew=true'","path":"config/environments/development.rb","position":12,"original_position":12,"commit_id":"6cbf7b23bc0831837b0be09a4387d5104270c599","original_commit_id":"6cbf7b23bc0831837b0be09a4387d5104270c599","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-09-08T18:42:40Z","updated_at":"2015-09-08T18:42:40Z","html_url":"https://github.com/ndlib/annex-ims/pull/120#discussion_r38963767","pull_request_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/120","_links":{"self":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments/38963767"},"html":{"href":"https://github.com/ndlib/annex-ims/pull/120#discussion_r38963767"},"pull_request":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/ndlib/annex-ims/pulls/120","id":44467702,"html_url":"https://github.com/ndlib/annex-ims/pull/120","diff_url":"https://github.com/ndlib/annex-ims/pull/120.diff","patch_url":"https://github.com/ndlib/annex-ims/pull/120.patch","issue_url":"https://api.github.com/repos/ndlib/annex-ims/issues/120","number":120,"state":"open","locked":false,"title":"AIMS-325: Session timeout","user":{"login":"jgondron","id":11502744,"avatar_url":"https://avatars.githubusercontent.com/u/11502744?v=3","gravatar_id":"","url":"https://api.github.com/users/jgondron","html_url":"https://github.com/jgondron","followers_url":"https://api.github.com/users/jgondron/followers","following_url":"https://api.github.com/users/jgondron/following{/other_user}","gists_url":"https://api.github.com/users/jgondron/gists{/gist_id}","starred_url":"https://api.github.com/users/jgondron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgondron/subscriptions","organizations_url":"https://api.github.com/users/jgondron/orgs","repos_url":"https://api.github.com/users/jgondron/repos","events_url":"https://api.github.com/users/jgondron/events{/privacy}","received_events_url":"https://api.github.com/users/jgondron/received_events","type":"User","site_admin":false},"body":"Why: User sessions remain valid for indefinite amount of time, causing security issues.\r\nHow:  User sessions will now expire. Did not use built in devise timeoutable method since it doesn't allow customizing the timed out page. Created our own expiration calculation which will now render a timed out page that forces the user to click login. By default, will timeout after 10 hours of inactivity for prod/preprod/staging. This should cause a login once per day if they're active in it all day. For dev using 24 hours. These can be changed in configs.","created_at":"2015-09-08T18:42:34Z","updated_at":"2015-09-08T18:42:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c28e2342245608c2ea2ac50dd6e6fd1f83464e51","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/120/commits","review_comments_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/120/comments","review_comment_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndlib/annex-ims/issues/120/comments","statuses_url":"https://api.github.com/repos/ndlib/annex-ims/statuses/6cbf7b23bc0831837b0be09a4387d5104270c599","head":{"label":"ndlib:AIMS-325-Expire-login","ref":"AIMS-325-Expire-login","sha":"6cbf7b23bc0831837b0be09a4387d5104270c599","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":27182637,"name":"annex-ims","full_name":"ndlib/annex-ims","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/annex-ims","description":"IRIS: Integrated Retrieval and Inventory System","fork":false,"url":"https://api.github.com/repos/ndlib/annex-ims","forks_url":"https://api.github.com/repos/ndlib/annex-ims/forks","keys_url":"https://api.github.com/repos/ndlib/annex-ims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/annex-ims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/annex-ims/teams","hooks_url":"https://api.github.com/repos/ndlib/annex-ims/hooks","issue_events_url":"https://api.github.com/repos/ndlib/annex-ims/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/annex-ims/events","assignees_url":"https://api.github.com/repos/ndlib/annex-ims/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/annex-ims/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/annex-ims/tags","blobs_url":"https://api.github.com/repos/ndlib/annex-ims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/annex-ims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/annex-ims/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/annex-ims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/annex-ims/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/annex-ims/languages","stargazers_url":"https://api.github.com/repos/ndlib/annex-ims/stargazers","contributors_url":"https://api.github.com/repos/ndlib/annex-ims/contributors","subscribers_url":"https://api.github.com/repos/ndlib/annex-ims/subscribers","subscription_url":"https://api.github.com/repos/ndlib/annex-ims/subscription","commits_url":"https://api.github.com/repos/ndlib/annex-ims/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/annex-ims/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/annex-ims/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/annex-ims/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/annex-ims/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/annex-ims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/annex-ims/merges","archive_url":"https://api.github.com/repos/ndlib/annex-ims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/annex-ims/downloads","issues_url":"https://api.github.com/repos/ndlib/annex-ims/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/annex-ims/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/annex-ims/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/annex-ims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/annex-ims/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/annex-ims/releases{/id}","created_at":"2014-11-26T15:16:57Z","updated_at":"2015-08-17T18:52:28Z","pushed_at":"2015-09-08T18:42:35Z","git_url":"git://github.com/ndlib/annex-ims.git","ssh_url":"git@github.com:ndlib/annex-ims.git","clone_url":"https://github.com/ndlib/annex-ims.git","svn_url":"https://github.com/ndlib/annex-ims","homepage":"","size":2959,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"ndlib:master","ref":"master","sha":"6c3c78c8f1eb24ea4eabacb526b224024724bc67","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":27182637,"name":"annex-ims","full_name":"ndlib/annex-ims","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/annex-ims","description":"IRIS: Integrated Retrieval and Inventory System","fork":false,"url":"https://api.github.com/repos/ndlib/annex-ims","forks_url":"https://api.github.com/repos/ndlib/annex-ims/forks","keys_url":"https://api.github.com/repos/ndlib/annex-ims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/annex-ims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/annex-ims/teams","hooks_url":"https://api.github.com/repos/ndlib/annex-ims/hooks","issue_events_url":"https://api.github.com/repos/ndlib/annex-ims/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/annex-ims/events","assignees_url":"https://api.github.com/repos/ndlib/annex-ims/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/annex-ims/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/annex-ims/tags","blobs_url":"https://api.github.com/repos/ndlib/annex-ims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/annex-ims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/annex-ims/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/annex-ims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/annex-ims/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/annex-ims/languages","stargazers_url":"https://api.github.com/repos/ndlib/annex-ims/stargazers","contributors_url":"https://api.github.com/repos/ndlib/annex-ims/contributors","subscribers_url":"https://api.github.com/repos/ndlib/annex-ims/subscribers","subscription_url":"https://api.github.com/repos/ndlib/annex-ims/subscription","commits_url":"https://api.github.com/repos/ndlib/annex-ims/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/annex-ims/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/annex-ims/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/annex-ims/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/annex-ims/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/annex-ims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/annex-ims/merges","archive_url":"https://api.github.com/repos/ndlib/annex-ims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/annex-ims/downloads","issues_url":"https://api.github.com/repos/ndlib/annex-ims/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/annex-ims/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/annex-ims/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/annex-ims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/annex-ims/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/annex-ims/releases{/id}","created_at":"2014-11-26T15:16:57Z","updated_at":"2015-08-17T18:52:28Z","pushed_at":"2015-09-08T18:42:35Z","git_url":"git://github.com/ndlib/annex-ims.git","ssh_url":"git@github.com:ndlib/annex-ims.git","clone_url":"https://github.com/ndlib/annex-ims.git","svn_url":"https://github.com/ndlib/annex-ims","homepage":"","size":2959,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/120"},"html":{"href":"https://github.com/ndlib/annex-ims/pull/120"},"issue":{"href":"https://api.github.com/repos/ndlib/annex-ims/issues/120"},"comments":{"href":"https://api.github.com/repos/ndlib/annex-ims/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/ndlib/annex-ims/statuses/6cbf7b23bc0831837b0be09a4387d5104270c599"}}}}