In this short video we will show how to configure Artifactory to proxy nuget.org or other Artifactory servers using V3 feed and how to configure the NuGet client to work with these repositories.
Video Transcript:
Hi, my name is Yura Hadad and I’m from JFrog Support. In this short video I will show you how to configure the remote repository using. Let’s start.
Okay, so before we are done in the configuring the NuGet client to the NuGet repositories in, I would like to speak about special configuration Artifactory which is called Force Authentication. This option is rallied for all the repository stats, local, remote, and now, since we know that the NuGet client did not send in authentication to the server, it’s posing a challenge. This special configuration should be enabled in some cases. Let’s speak about them.
So, let’s go to the simple case. When global is not enabled in the server, there is no one to enable this option when we post our configuration. We will then challenge the client to follow the request.
Now, if global is enabled on the server, we have two cases. This first one is that the anonymous user to the repository. If done the repository, we should not enable this option since we don’t want to force authentication and we want to allow the anonymous user to get all the data. If anonymous user don’t have any foundations to the repository, we need to enable the authentication option so in fact, we will not challenge the client request coming to this repository.
Okay. So now, we will see two different examples of how to configure remote repositories factor. This first one will be a repository that the gallery. And the other one will be a smart repository that another. Let’s start with the gallery.
So, in order to create a remote repository that’s focusing on the gallery, we need to go to the administration section of, select the repositories options, and create a new remote repository. I will select NuGet as my technology, and I will just need to give the repository a name. Factory provides us with all the other information and configuration out of the box. Then, in order to see my repository, I will go back to Artifactory, and we’ll see.
If I want to configure my clients to open end this repository, I will simply go to the set we have that gives us all the information we need. I will put my password, so it will give me an configuration ready to use. And then, I can just open the common in order to configure Artifactory to what. Let’s see it.
So, after rating the repository, I can see that in my NuGet configuration file the repository is available.
If I will go back to the set me up page, we will see that in order to work with the we need to do some changes. So, we need to add the slash into the repository planner, and to add the portable. So, let’s do it.
I will go to the configuration tab. I will edit the multiple version of the tree, and I will also edit the tree to my repository URL. Then, if I will go and do the NuGet leave common, and I will select my factory server, I will be able to see all the packages which are available in this gallery. And if I will try to install some package from this repository… So, let’s try to install. Okay. We’ll see that our factory has provided us all the information we need. In addition, if we will go to the repository itself, and we look into cache repository, we can see that have been downloaded.
Okay. So, after we have completed the simple remote repository that points to gallery, let’s see how we configure this that’s pointing to another. Let’s see the repository configuration. As we can see, the package type is NuGet because this is the package that we want. The URL is the URL to the Artifactory server. With the context of NuGet after that, and then the repository name. Then, we need to copy the same URL to the NuGet. And just to add to the context, the before the repository name.
If I want to be able also to resolve version two feeds on this repository, I will change it into NuGet download context back to download, and the NuGet speed context back to be empty. In addition, inside this repository is a secured one. I have the and the password created in order to be able to resolve our. Then, everything is the same as we’ve done with the simple and multi repository NuGet gallery. If I will go to the repository configuration, in factory, then I can see that the set me up information is the same, and all the commons are the same. And if we will look at that factory load, we will be able to see, first, that the indexes have been downloaded from Artifactory. Okay? And that, in the end, the NuGet package itself has also been resolved for Artifactory.
That was my video on auto configured multi repositories for NuGet using bit version three. Thanks for watching, and I hope you have enjoyed. Feel free to leave your comments, feedbacks, or questions in the comment section video. Bye-bye.