{"action":"created","issue":{"url":"https://api.github.com/repos/yucao24hours/elt2015/issues/79","labels_url":"https://api.github.com/repos/yucao24hours/elt2015/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/yucao24hours/elt2015/issues/79/comments","events_url":"https://api.github.com/repos/yucao24hours/elt2015/issues/79/events","html_url":"https://github.com/yucao24hours/elt2015/pull/79","id":98194355,"number":79,"title":"Twitter アカウントでログインできるようにした [closes #28]","user":{"login":"yucao24hours","id":1979779,"avatar_url":"https://avatars.githubusercontent.com/u/1979779?v=3","gravatar_id":"","url":"https://api.github.com/users/yucao24hours","html_url":"https://github.com/yucao24hours","followers_url":"https://api.github.com/users/yucao24hours/followers","following_url":"https://api.github.com/users/yucao24hours/following{/other_user}","gists_url":"https://api.github.com/users/yucao24hours/gists{/gist_id}","starred_url":"https://api.github.com/users/yucao24hours/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yucao24hours/subscriptions","organizations_url":"https://api.github.com/users/yucao24hours/orgs","repos_url":"https://api.github.com/users/yucao24hours/repos","events_url":"https://api.github.com/users/yucao24hours/events{/privacy}","received_events_url":"https://api.github.com/users/yucao24hours/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yucao24hours/elt2015/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-30T15:12:46Z","updated_at":"2015-08-06T14:21:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yucao24hours/elt2015/pulls/79","html_url":"https://github.com/yucao24hours/elt2015/pull/79","diff_url":"https://github.com/yucao24hours/elt2015/pull/79.diff","patch_url":"https://github.com/yucao24hours/elt2015/pull/79.patch"},"body":"## 概要\r\nTwitter アカウントを使ってもログインができるようにしました。\r\nただし今回は原則として GitHub アカウントでのログインのみとするため、GitHub ログインの通常ページとは画面を分け、Basic 認証をかけました。\r\n\r\n## 背景\r\n前回の tqrk で GitHub および Twitter アカウントでログインできるようにしましたが、どちらもアカウントを持っている人は二重ログインして不正な投票ができてしまう恐れがありました。（結局前回は運用でカバーというか、参加者の良心に任せた形になりました）\r\nそれを踏まえて話し合った結果、\r\n「エンジニアの集団のはずだから GitHub アカウントがないということはほぼないだろうし、GitHub アカウントのみという扱いでいいのではないか。\r\n万が一『アカウントがない・忘れた、けど Twitter アカウントならある』という人がいたら、例外的にこの Twitter ログイン機能を使うようにしよう。（もしくはエンジニアならばその場で GitHub アカウントを作っても損はないだろう）」\r\nという結論に至りました。\r\n\r\n## TODO\r\n- [x] Basic auth の変数を、ランキングのものと共通にする\r\n\r\n## 対応ストーリー\r\nThis work connects to #28"},"comment":{"url":"https://api.github.com/repos/yucao24hours/elt2015/issues/comments/128388600","html_url":"https://github.com/yucao24hours/elt2015/pull/79#issuecomment-128388600","issue_url":"https://api.github.com/repos/yucao24hours/elt2015/issues/79","id":128388600,"user":{"login":"yucao24hours","id":1979779,"avatar_url":"https://avatars.githubusercontent.com/u/1979779?v=3","gravatar_id":"","url":"https://api.github.com/users/yucao24hours","html_url":"https://github.com/yucao24hours","followers_url":"https://api.github.com/users/yucao24hours/followers","following_url":"https://api.github.com/users/yucao24hours/following{/other_user}","gists_url":"https://api.github.com/users/yucao24hours/gists{/gist_id}","starred_url":"https://api.github.com/users/yucao24hours/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yucao24hours/subscriptions","organizations_url":"https://api.github.com/users/yucao24hours/orgs","repos_url":"https://api.github.com/users/yucao24hours/repos","events_url":"https://api.github.com/users/yucao24hours/events{/privacy}","received_events_url":"https://api.github.com/users/yucao24hours/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T14:21:27Z","updated_at":"2015-08-06T14:21:27Z","body":":pray: \r\n"}}