-
Notifications
You must be signed in to change notification settings - Fork 705
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
Work with MFA #131
Comments
Can you share the details of the command that you're trying to run? If you're running the |
Should also mention I'm trying to run this in WSL using Ubuntu 18.04 I was running I tried I was wondering if maybe I installed the plugin on my normal nuget install and maybe the dotnet install has it's own bundled nuget that it uses which may be a bit older? I'm not sure what nuget install is actually used by the dotnet cli though. |
If you get the username and password prompts in the console, it likely means that NuGet wasn't able to find the plugin. Did you run one of these scripts to install the cred provider? Please refer to the readme for instructions how the plugin will be discovered. For nuget you need to install the netfx version and for dotnet you will need the netcore version. |
I had followed Manual installation on Linux and Mac to the default location of I hadn't set I verified |
It looks like you've tried with both nuget and dotnet. Dotnet uses the netcore version and nuget uses the netfx version of the plugin, so both need to be installed in You must set the $NUGET_PLUGIN_PATHS environment variable to the CredentialProvider.Microsoft.dll (or CredentialProvider.Microsoft.exe with nuget) instead of the folder. If you have to use both nuget and dotnet, I believe with nuget 5.3 update there are two separate environment variables that you can set, one for the .dll and one for the .exe files: NuGet/Home#8151 Although, if you have the CredentialProvider.Microsoft.dll in |
Closing the issue due to inactivity. Please refer to the previous comment on how to make nuget/dotnet discover the cred provider plugin. Let me know if you have any questions. |
Is this tool supposed to work if my account has 2 factor authentication turned on? I'm getting prompted for my username and password but am receiving a
Response status code does not indicate success: 401 (Unauthorized)
. I've double checked my credentials so I was wondering if MFA might be giving me issues? I've tried giving it a PAT also with no luckThe text was updated successfully, but these errors were encountered: