{"action":"closed","number":903,"pull_request":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/903","id":124996951,"html_url":"https://github.com/lynndylanhurley/devise_token_auth/pull/903","diff_url":"https://github.com/lynndylanhurley/devise_token_auth/pull/903.diff","patch_url":"https://github.com/lynndylanhurley/devise_token_auth/pull/903.patch","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/903","number":903,"state":"closed","locked":false,"title":"DeviseTokenAuth.bypass_sign_in setting","user":{"login":"Borzik","id":2151808,"avatar_url":"https://avatars0.githubusercontent.com/u/2151808?v=3","gravatar_id":"","url":"https://api.github.com/users/Borzik","html_url":"https://github.com/Borzik","followers_url":"https://api.github.com/users/Borzik/followers","following_url":"https://api.github.com/users/Borzik/following{/other_user}","gists_url":"https://api.github.com/users/Borzik/gists{/gist_id}","starred_url":"https://api.github.com/users/Borzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borzik/subscriptions","organizations_url":"https://api.github.com/users/Borzik/orgs","repos_url":"https://api.github.com/users/Borzik/repos","events_url":"https://api.github.com/users/Borzik/events{/privacy}","received_events_url":"https://api.github.com/users/Borzik/received_events","type":"User","site_admin":false},"body":"This PR adds a configuration to force passing sign in hooks on each call which includes access token. \r\n\r\nThis may be useful, for example, for `activatable` [hook implementation](https://github.com/plataformatec/devise/blob/master/lib/devise/hooks/activatable.rb) (you add `active` column to users table, and set it to `true` when you want to allow people to log in, but set this to `false` when you want to block them).\r\n\r\nDefault behavior remains the same.\r\n\r\nWhen `DeviseTokenAuth.bypass_sign_in` is set to `false`, users which return `false` to `active_for_authentication?` will be locked immediately, and won't be able to run any actions using their access token, even if it was valid before their inactivation.\r\n\r\nPlease let me know if you have any questions or comments regarding this implementation.","created_at":"2017-06-10T16:45:49Z","updated_at":"2017-06-12T13:00:07Z","closed_at":"2017-06-12T13:00:07Z","merged_at":null,"merge_commit_sha":"4ab4d23ec32c8b71883fbf34da26fbfa7943099e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/903/commits","review_comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/903/comments","review_comment_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/903/comments","statuses_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/statuses/27549591e38fe23d2cda5572cad0c412c48ac31d","head":{"label":"Borzik:bypass-sign-in","ref":"bypass-sign-in","sha":"27549591e38fe23d2cda5572cad0c412c48ac31d","user":{"login":"Borzik","id":2151808,"avatar_url":"https://avatars0.githubusercontent.com/u/2151808?v=3","gravatar_id":"","url":"https://api.github.com/users/Borzik","html_url":"https://github.com/Borzik","followers_url":"https://api.github.com/users/Borzik/followers","following_url":"https://api.github.com/users/Borzik/following{/other_user}","gists_url":"https://api.github.com/users/Borzik/gists{/gist_id}","starred_url":"https://api.github.com/users/Borzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borzik/subscriptions","organizations_url":"https://api.github.com/users/Borzik/orgs","repos_url":"https://api.github.com/users/Borzik/repos","events_url":"https://api.github.com/users/Borzik/events{/privacy}","received_events_url":"https://api.github.com/users/Borzik/received_events","type":"User","site_admin":false},"repo":{"id":93951757,"name":"devise_token_auth","full_name":"Borzik/devise_token_auth","owner":{"login":"Borzik","id":2151808,"avatar_url":"https://avatars0.githubusercontent.com/u/2151808?v=3","gravatar_id":"","url":"https://api.github.com/users/Borzik","html_url":"https://github.com/Borzik","followers_url":"https://api.github.com/users/Borzik/followers","following_url":"https://api.github.com/users/Borzik/following{/other_user}","gists_url":"https://api.github.com/users/Borzik/gists{/gist_id}","starred_url":"https://api.github.com/users/Borzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borzik/subscriptions","organizations_url":"https://api.github.com/users/Borzik/orgs","repos_url":"https://api.github.com/users/Borzik/repos","events_url":"https://api.github.com/users/Borzik/events{/privacy}","received_events_url":"https://api.github.com/users/Borzik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Borzik/devise_token_auth","description":"Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.","fork":true,"url":"https://api.github.com/repos/Borzik/devise_token_auth","forks_url":"https://api.github.com/repos/Borzik/devise_token_auth/forks","keys_url":"https://api.github.com/repos/Borzik/devise_token_auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Borzik/devise_token_auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Borzik/devise_token_auth/teams","hooks_url":"https://api.github.com/repos/Borzik/devise_token_auth/hooks","issue_events_url":"https://api.github.com/repos/Borzik/devise_token_auth/issues/events{/number}","events_url":"https://api.github.com/repos/Borzik/devise_token_auth/events","assignees_url":"https://api.github.com/repos/Borzik/devise_token_auth/assignees{/user}","branches_url":"https://api.github.com/repos/Borzik/devise_token_auth/branches{/branch}","tags_url":"https://api.github.com/repos/Borzik/devise_token_auth/tags","blobs_url":"https://api.github.com/repos/Borzik/devise_token_auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Borzik/devise_token_auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Borzik/devise_token_auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/Borzik/devise_token_auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Borzik/devise_token_auth/statuses/{sha}","languages_url":"https://api.github.com/repos/Borzik/devise_token_auth/languages","stargazers_url":"https://api.github.com/repos/Borzik/devise_token_auth/stargazers","contributors_url":"https://api.github.com/repos/Borzik/devise_token_auth/contributors","subscribers_url":"https://api.github.com/repos/Borzik/devise_token_auth/subscribers","subscription_url":"https://api.github.com/repos/Borzik/devise_token_auth/subscription","commits_url":"https://api.github.com/repos/Borzik/devise_token_auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/Borzik/devise_token_auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/Borzik/devise_token_auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/Borzik/devise_token_auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/Borzik/devise_token_auth/contents/{+path}","compare_url":"https://api.github.com/repos/Borzik/devise_token_auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Borzik/devise_token_auth/merges","archive_url":"https://api.github.com/repos/Borzik/devise_token_auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Borzik/devise_token_auth/downloads","issues_url":"https://api.github.com/repos/Borzik/devise_token_auth/issues{/number}","pulls_url":"https://api.github.com/repos/Borzik/devise_token_auth/pulls{/number}","milestones_url":"https://api.github.com/repos/Borzik/devise_token_auth/milestones{/number}","notifications_url":"https://api.github.com/repos/Borzik/devise_token_auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Borzik/devise_token_auth/labels{/name}","releases_url":"https://api.github.com/repos/Borzik/devise_token_auth/releases{/id}","deployments_url":"https://api.github.com/repos/Borzik/devise_token_auth/deployments","created_at":"2017-06-10T16:29:52Z","updated_at":"2017-06-10T16:29:54Z","pushed_at":"2017-06-10T16:30:25Z","git_url":"git://github.com/Borzik/devise_token_auth.git","ssh_url":"git@github.com:Borzik/devise_token_auth.git","clone_url":"https://github.com/Borzik/devise_token_auth.git","svn_url":"https://github.com/Borzik/devise_token_auth","homepage":"","size":7898,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":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":"master"}},"base":{"label":"lynndylanhurley:master","ref":"master","sha":"53f19d07116109d56f9960c1b82485a463797e88","user":{"login":"lynndylanhurley","id":468037,"avatar_url":"https://avatars3.githubusercontent.com/u/468037?v=3","gravatar_id":"","url":"https://api.github.com/users/lynndylanhurley","html_url":"https://github.com/lynndylanhurley","followers_url":"https://api.github.com/users/lynndylanhurley/followers","following_url":"https://api.github.com/users/lynndylanhurley/following{/other_user}","gists_url":"https://api.github.com/users/lynndylanhurley/gists{/gist_id}","starred_url":"https://api.github.com/users/lynndylanhurley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynndylanhurley/subscriptions","organizations_url":"https://api.github.com/users/lynndylanhurley/orgs","repos_url":"https://api.github.com/users/lynndylanhurley/repos","events_url":"https://api.github.com/users/lynndylanhurley/events{/privacy}","received_events_url":"https://api.github.com/users/lynndylanhurley/received_events","type":"User","site_admin":false},"repo":{"id":21333814,"name":"devise_token_auth","full_name":"lynndylanhurley/devise_token_auth","owner":{"login":"lynndylanhurley","id":468037,"avatar_url":"https://avatars3.githubusercontent.com/u/468037?v=3","gravatar_id":"","url":"https://api.github.com/users/lynndylanhurley","html_url":"https://github.com/lynndylanhurley","followers_url":"https://api.github.com/users/lynndylanhurley/followers","following_url":"https://api.github.com/users/lynndylanhurley/following{/other_user}","gists_url":"https://api.github.com/users/lynndylanhurley/gists{/gist_id}","starred_url":"https://api.github.com/users/lynndylanhurley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynndylanhurley/subscriptions","organizations_url":"https://api.github.com/users/lynndylanhurley/orgs","repos_url":"https://api.github.com/users/lynndylanhurley/repos","events_url":"https://api.github.com/users/lynndylanhurley/events{/privacy}","received_events_url":"https://api.github.com/users/lynndylanhurley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lynndylanhurley/devise_token_auth","description":"Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.","fork":false,"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth","forks_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/forks","keys_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/teams","hooks_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/hooks","issue_events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/events{/number}","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/events","assignees_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/assignees{/user}","branches_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/branches{/branch}","tags_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/tags","blobs_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/statuses/{sha}","languages_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/languages","stargazers_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/stargazers","contributors_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/contributors","subscribers_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/subscribers","subscription_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/subscription","commits_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/contents/{+path}","compare_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/merges","archive_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/downloads","issues_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues{/number}","pulls_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls{/number}","milestones_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/milestones{/number}","notifications_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/labels{/name}","releases_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/releases{/id}","deployments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/deployments","created_at":"2014-06-29T22:43:58Z","updated_at":"2017-06-11T20:58:25Z","pushed_at":"2017-06-10T16:45:50Z","git_url":"git://github.com/lynndylanhurley/devise_token_auth.git","ssh_url":"git@github.com:lynndylanhurley/devise_token_auth.git","clone_url":"https://github.com/lynndylanhurley/devise_token_auth.git","svn_url":"https://github.com/lynndylanhurley/devise_token_auth","homepage":"","size":7932,"stargazers_count":1958,"watchers_count":1958,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":592,"mirror_url":null,"open_issues_count":372,"forks":592,"open_issues":372,"watchers":1958,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/903"},"html":{"href":"https://github.com/lynndylanhurley/devise_token_auth/pull/903"},"issue":{"href":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/903"},"comments":{"href":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/903/comments"},"review_comments":{"href":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/903/comments"},"review_comment":{"href":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/pulls/903/commits"},"statuses":{"href":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/statuses/27549591e38fe23d2cda5572cad0c412c48ac31d"}},"merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":62,"deletions":3,"changed_files":4}}
{"actor":{"display_login":"Borzik"}}