Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to handle MFA on code check-in on VSTS and Azure DevOps #653

Open
prachiwalke opened this issue Oct 14, 2019 · 2 comments
Open

Unable to handle MFA on code check-in on VSTS and Azure DevOps #653

prachiwalke opened this issue Oct 14, 2019 · 2 comments

Comments

@prachiwalke
Copy link

prachiwalke commented Oct 14, 2019

Hi,
We are in the urgent need to get this problem resolved.
We have all the users to log into the system which have Multi-Factor Authentication (MFA) enabled for them.
We are using Chrome's plugin Authenticator App (AA) for generating OTP for those users while login.
And in Automation Script, we have used "Aerogear.OTP" class which reads this OTP generated by Authenticator App at runtime.
This was working fine previously. But, when we started checking-in our code on VSTS / Azure DevOps, it stopped reading this AA's OTP from one machine to another.
Thus, mine and my colleague's scripts do run on each other's machines, as in my Chrome's AA, my user is set and on his machine, his user is set.
Kindly help us at the earliest.
Thanks in Advance.

@AngelRodriguez8008
Copy link
Contributor

AngelRodriguez8008 commented Nov 6, 2019

Hi,
I have added Multi-Factor Authentication (MFA) in this commit on my branch.

It is so simple as put Secrect Key in app.config & past it to the Login method. To get the Secrect Key follow the first part of this tutorial. See the sample included in commit.
<add key="MfaSecrectKey" value=""/>

I changed the Login Method to get Optional the "Secrect Key" and Compute the One Time Code using the Otp.NET library. As jsakamoto describe hier

I'm not fully test it. But seem to work fine Online v.9.1.

@AngelRodriguez8008
Copy link
Contributor

Hi @prachiwalke,

MFA is avaible in the latest version, this Issue can be closed.

Thanks & br

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants