go-jira / jira

simple jira command line client in Go
Apache License 2.0
2.68k stars 327 forks source link

add support for 2FA/MFA #86

Open kplimack opened 7 years ago

kplimack commented 7 years ago

I use duo for 2-factor-authentication and gojira doesnt seem to support it. If i set the password-source to pass, I can see Duo's 2fa page returned, but I'm unsure how to provide it anything.

coryb commented 7 years ago

Yeah, sounds like go-jira would not support that setup currently. Unfortunately I think you are on your own to solve this one since I wont have access to test your setup. If you find a solution definitely send me a PR for it and I will get it merged in.

coryb commented 7 years ago

I have rewritten go-jira to use the session login api in Jira, not sure if that will work for you or if the 2FA/Duo login is still required for API access to your jira instance. Might want to give the latest version a try: https://github.com/Netflix-Skunkworks/go-jira#login-process-change

coryb commented 6 years ago

We have added api-token support which should work for any hosted jira on atlassian.net, not sure if this setup will work for you: https://github.com/Netflix-Skunkworks/go-jira#authentication