{"action":"created","issue":{"url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/102","repository_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm","labels_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/102/comments","events_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/102/events","html_url":"https://github.com/StackStorm/hubot-stackstorm/pull/102","id":141070886,"number":102,"title":"[RFR] Native support for two-factor auth","user":{"login":"emedvedev","id":145218,"avatar_url":"https://avatars.githubusercontent.com/u/145218?v=3","gravatar_id":"","url":"https://api.github.com/users/emedvedev","html_url":"https://github.com/emedvedev","followers_url":"https://api.github.com/users/emedvedev/followers","following_url":"https://api.github.com/users/emedvedev/following{/other_user}","gists_url":"https://api.github.com/users/emedvedev/gists{/gist_id}","starred_url":"https://api.github.com/users/emedvedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emedvedev/subscriptions","organizations_url":"https://api.github.com/users/emedvedev/orgs","repos_url":"https://api.github.com/users/emedvedev/repos","events_url":"https://api.github.com/users/emedvedev/events{/privacy}","received_events_url":"https://api.github.com/users/emedvedev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-15T19:09:51Z","updated_at":"2016-03-19T09:57:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/pulls/102","html_url":"https://github.com/StackStorm/hubot-stackstorm/pull/102","diff_url":"https://github.com/StackStorm/hubot-stackstorm/pull/102.diff","patch_url":"https://github.com/StackStorm/hubot-stackstorm/pull/102.patch"},"body":"Goes together with https://github.com/StackStorm/st2contrib/pull/444.\n\nThis PR adds native support for two-factor auth through the Duo pack. Support can be enabled by setting `HUBOT_2FA` environment variable and having `extra:security:twofactor` flag in an alias. \n\nIt works through “freezing” an execution attempt until a `2fa` announcement for a successful auth with the correspondent ID is caught in the stream.\n\nThe change is fully backwards-compatible; later I’ll add the env variable (commented out) to `st2chatops.env`, thoroughly documenting the case as well."},"comment":{"url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/comments/198676622","html_url":"https://github.com/StackStorm/hubot-stackstorm/pull/102#issuecomment-198676622","issue_url":"https://api.github.com/repos/StackStorm/hubot-stackstorm/issues/102","id":198676622,"user":{"login":"emedvedev","id":145218,"avatar_url":"https://avatars.githubusercontent.com/u/145218?v=3","gravatar_id":"","url":"https://api.github.com/users/emedvedev","html_url":"https://github.com/emedvedev","followers_url":"https://api.github.com/users/emedvedev/followers","following_url":"https://api.github.com/users/emedvedev/following{/other_user}","gists_url":"https://api.github.com/users/emedvedev/gists{/gist_id}","starred_url":"https://api.github.com/users/emedvedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emedvedev/subscriptions","organizations_url":"https://api.github.com/users/emedvedev/orgs","repos_url":"https://api.github.com/users/emedvedev/repos","events_url":"https://api.github.com/users/emedvedev/events{/privacy}","received_events_url":"https://api.github.com/users/emedvedev/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T09:57:29Z","updated_at":"2016-03-19T09:57:29Z","body":"Added tests to check if FA should be enabled/disabled in general as well as for specific aliases. As the feature grows, we'll need more tests for sure."}}