{"action":"created","issue":{"url":"https://api.github.com/repos/venth/aws-adfs/issues/49","repository_url":"https://api.github.com/repos/venth/aws-adfs","labels_url":"https://api.github.com/repos/venth/aws-adfs/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/venth/aws-adfs/issues/49/comments","events_url":"https://api.github.com/repos/venth/aws-adfs/issues/49/events","html_url":"https://github.com/venth/aws-adfs/issues/49","id":243068785,"number":49,"title":"Upgrade from 0.3.6 to 0.3.7 breaking simple authentication","user":{"login":"dplunk","id":638612,"avatar_url":"https://avatars3.githubusercontent.com/u/638612?v=4","gravatar_id":"","url":"https://api.github.com/users/dplunk","html_url":"https://github.com/dplunk","followers_url":"https://api.github.com/users/dplunk/followers","following_url":"https://api.github.com/users/dplunk/following{/other_user}","gists_url":"https://api.github.com/users/dplunk/gists{/gist_id}","starred_url":"https://api.github.com/users/dplunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dplunk/subscriptions","organizations_url":"https://api.github.com/users/dplunk/orgs","repos_url":"https://api.github.com/users/dplunk/repos","events_url":"https://api.github.com/users/dplunk/events{/privacy}","received_events_url":"https://api.github.com/users/dplunk/received_events","type":"User","site_admin":false},"labels":[{"id":398320838,"url":"https://api.github.com/repos/venth/aws-adfs/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/venth/aws-adfs/milestones/1","html_url":"https://github.com/venth/aws-adfs/milestone/1","labels_url":"https://api.github.com/repos/venth/aws-adfs/milestones/1/labels","id":2576049,"number":1,"title":"0.3.x","description":"Bug fixes and improvements","creator":{"login":"venth","id":3862264,"avatar_url":"https://avatars1.githubusercontent.com/u/3862264?v=4","gravatar_id":"","url":"https://api.github.com/users/venth","html_url":"https://github.com/venth","followers_url":"https://api.github.com/users/venth/followers","following_url":"https://api.github.com/users/venth/following{/other_user}","gists_url":"https://api.github.com/users/venth/gists{/gist_id}","starred_url":"https://api.github.com/users/venth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venth/subscriptions","organizations_url":"https://api.github.com/users/venth/orgs","repos_url":"https://api.github.com/users/venth/repos","events_url":"https://api.github.com/users/venth/events{/privacy}","received_events_url":"https://api.github.com/users/venth/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":6,"state":"open","created_at":"2017-06-11T14:46:26Z","updated_at":"2017-08-05T07:51:30Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2017-07-14T18:02:41Z","updated_at":"2017-08-05T07:51:30Z","closed_at":"2017-08-05T07:51:30Z","body":"I just upgraded my module from 0.3.6 to 0.3.7 and am now receiving the following error during authentication. \r\n\r\n```\r\n(adfs) thecomputer:~ <myusername>$ aws-adfs login --adfs-host=mydomain.com --region=us-east-1\r\n2017-07-14 12:51:16,509 [authenticator authenticator.py:authenticate] [80410-MainProcess] [140735207329792-MainThread] - ERROR: Cannot extract saml assertion. Second factor authentication failed?\r\nUsername: <myusername>@mydomain.com\r\nPassword:\r\nTraceback (most recent call last):\r\n  File \"/Users/<myusername>/adfs/bin/aws-adfs\", line 11, in <module>\r\n    sys.exit(cli())\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/click/core.py\", line 1066, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/aws_adfs/login.py\", line 91, in login\r\n    principal_roles, assertion, aws_session_duration = authenticator.authenticate(config, username, password)\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/aws_adfs/authenticator.py\", line 38, in authenticate\r\n    principal_roles)\r\n  File \"/Users/<myusername>/adfs/lib/python2.7/site-packages/aws_adfs/authenticator.py\", line 57, in _aggregate_roles_by_account_alias\r\n    if account_aliases[account_no] not in aggregated_accounts:\r\nKeyError: '214329012423'\r\n(adfs) thecomputer:~ <myusername>$\r\n````\r\n\r\n\r\nPython version 2.7.10 on Mac OS X El Capitan 10.11.4\r\nPip modules installed:\r\n```\r\nasn1crypto==0.22.0\r\naws-adfs==0.3.7\r\nawscli==1.11.105\r\nboto3==1.4.4\r\nbotocore==1.5.82\r\ncertifi==2017.4.17\r\ncffi==1.10.0\r\nchardet==3.0.4\r\nclick==6.7\r\ncolorama==0.3.7\r\nconfigparser==3.5.0\r\ncryptography==1.9\r\ndocutils==0.13.1\r\nenum34==1.1.6\r\nfutures==3.1.1\r\nidna==2.5\r\nipaddress==1.0.18\r\njmespath==0.9.3\r\nlxml==3.8.0\r\npyasn1==0.2.3\r\npycparser==2.18\r\npyOpenSSL==17.1.0\r\npython-dateutil==2.6.1\r\nPyYAML==3.12\r\nrequests==2.18.1\r\nrsa==3.4.2\r\ns3transfer==0.1.10\r\nsix==1.10.0\r\nurllib3==1.21.1\r\n```"},"comment":{"url":"https://api.github.com/repos/venth/aws-adfs/issues/comments/320425058","html_url":"https://github.com/venth/aws-adfs/issues/49#issuecomment-320425058","issue_url":"https://api.github.com/repos/venth/aws-adfs/issues/49","id":320425058,"user":{"login":"venth","id":3862264,"avatar_url":"https://avatars1.githubusercontent.com/u/3862264?v=4","gravatar_id":"","url":"https://api.github.com/users/venth","html_url":"https://github.com/venth","followers_url":"https://api.github.com/users/venth/followers","following_url":"https://api.github.com/users/venth/following{/other_user}","gists_url":"https://api.github.com/users/venth/gists{/gist_id}","starred_url":"https://api.github.com/users/venth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venth/subscriptions","organizations_url":"https://api.github.com/users/venth/orgs","repos_url":"https://api.github.com/users/venth/repos","events_url":"https://api.github.com/users/venth/events{/privacy}","received_events_url":"https://api.github.com/users/venth/received_events","type":"User","site_admin":false},"created_at":"2017-08-05T07:51:30Z","updated_at":"2017-08-05T07:51:30Z","body":"Thanks @anthoneous. I close the issue then."}}
{"actor":{"display_login":"venth"}}