nathan-v / aws_okta_keyman

AWS Okta Keyman (Key Manager) - An AWS + Okta CLI for generating and managing local AWS API keys
https://nathanv.com
Other
59 stars 38 forks source link

Request: SMS factor support #7

Closed satssin closed 6 years ago

satssin commented 6 years ago

I am getting this error message while running the tool

aws_okta_keyman -c /Users/satish_kumar1/.config/aws_okta_keyman.yml 11:44:02 (INFO) AWS Okta Keyman v0.3.0 11:44:02 (WARNING) No app ID provided; please select from available AWS accounts [0] Account: nonprod Select an account from above: 0 11:44:12 (INFO) Using account: nonprod / 0oaiz4jczn*** Password: 11:44:23 (CRITICAL) Fatal error: MFA_REQUIRED

nathan-v commented 6 years ago

Hi, @satssin. What MFA type is in use for your Okta org?

Edit: It does seem like that part could use more logging which I can add later on to make debugging this case easier.

satssin commented 6 years ago

SMS

Satish Kumar|Manager, DevOps Solutions | GTS|MCSE,RHCA,ITIL,OCWA,SCSA,AWS,CCNA Email:satish.kumar1@mheducation.com|Cell:9732896721

From: Nathan V notifications@github.com Reply-To: nathan-v/aws_okta_keyman reply@reply.github.com Date: Wednesday, April 4, 2018 at 5:43 PM To: nathan-v/aws_okta_keyman aws_okta_keyman@noreply.github.com Cc: "Kumar, Satish" satish.kumar1@mheducation.com, Mention mention@noreply.github.com Subject: Re: [nathan-v/aws_okta_keyman] MFA error (#7)

Hi, @satssinhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsatssin&data=01%7C01%7Csatish.kumar1%40mheducation.com%7Cfc47a22b526042bdf6da08d59a7512fe%7Cf919b1efc0c347358fca0928ec39d8d5%7C0&sdata=lLn5XiB4FoYTPugywjYVtxE7fUEdENkC7YVtT81oQkE%3D&reserved=0. What MFA type is in use for your Okta org?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnathan-v%2Faws_okta_keyman%2Fissues%2F7%23issuecomment-378754824&data=01%7C01%7Csatish.kumar1%40mheducation.com%7Cfc47a22b526042bdf6da08d59a7512fe%7Cf919b1efc0c347358fca0928ec39d8d5%7C0&sdata=AJdZUwTz7S75Yd0sa0B7KZU0ys%2FWAGHAOWyUPnvyAVk%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEQLesX91gcCrIflqvLjYO8OHVDoFDIwks5tlT5kgaJpZM4TFUjV&data=01%7C01%7Csatish.kumar1%40mheducation.com%7Cfc47a22b526042bdf6da08d59a7512fe%7Cf919b1efc0c347358fca0928ec39d8d5%7C0&sdata=vEz80AZxuvrbGiGbrhuMQ1SuJKcBOwtnj1OZEe3lbZc%3D&reserved=0.

The information contained in this message may be confidential and/or constitute a privileged attorney-client document. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify McGraw-Hill Education immediately by replying to the message and deleting it from your computer. Thank you.

nathan-v commented 6 years ago

Hi, @satssin. SMS isn't something I've added support for yet but I will look into it. I'll look at improving the error message so it's more clear in the case of an MFA factor that isn't supported yet.

nathan-v commented 6 years ago

SMS now supported.