Nuget authentication #12754
Unanswered
TerryChan2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using JFrog artifactory and have recently revoked anonymous access from it. We noticed that nuget cannot get packages and an identity token in JFrog was created with which I expect I can use it in nuget for authentication when pulling packages from JFrog.
I can use curl command get the package with the identity token
curl -u {my user name in JFrog’s user profile}:{my identity token in JFrog} -O {the package in JFrog’s artifactory link}
However, I’ve updated the nuget.config file by adding packageSourceCredentials section as shown below but nuget still cannot get the packages.
< packageSources >
< add key="Artifactory" value="{JFrog’s artifactory link}" / >
< /packageSources >
< packageSourceCredentials >
< Artifactory >
< add key="Username" value={my user name in JFrog’s user profile} / >
< add key="ClearTextPassword" value="{my identity token in JFrog}" / >
< /Artifactory >
< /packageSourceCredentials >
Any advice on this sceanrio?
Beta Was this translation helpful? Give feedback.
All reactions