0
votes

I am trying to set up a nuget server for our organization. I am setting it up using the guide at https://www.codeproject.com/articles/872230/create-your-own-private-nuget-server-in-windows-az and all is basically good. The code works and I can access the feed from my browser as well as Visual Studio (2015).

However - we will use it for internal packages as well as letting customers get access to it so we need to secure it and not allow anonymous access.

I have set up authentication to require log on with our organization's Azure Active Directory accounts. It is done using the "built-in" configuration in Azure Portal.

enter image description here

The "Existing app" was originally generated by the portal using the "Express" way of configuring authentication.

When I access the collection with a browser, I am asked to log in with my company Office 365 account - all is fine, but when I try to add the nuget service as a "Package Source" in Visual Studio, I am prompted a bit differently:

enter image description here

It does not accept my credentials when logging in using my corp email and password or with DOMAIN\USER way of doing it.

Also - I am a little bit confused about the login prompt. I would have expected the UI for the log-in would look like the "normal" log in prompt in Visual Studio:

enter image description here

Am I missing something obvious here? How do I secure my nuget feed in Azure with Office 365 authentication ... such that it works in Visual Studio?

Thanks :-)

1

1 Answers

0
votes

It does not accept my credentials when logging in using my corp email and password or with DOMAIN\USER way of doing it.

From the screenshot that you seems want to connect to Azure web app. Please try below steps to see if it helps:

1) Get publish profile

enter image description here

2) Open publish profile then find user name and password

enter image description here