I am able to push nuget packages to Artifactory using dotnet nuget push %WORKSPACE%\NuGetPackages\*.nupkg --source <url> --api-key <username>:<encrypted password>
. However, I would like push using a API key or an access token, but I receive 403 Forbidden trying to do so. Is it possible to get this working?
NuGet protocol expects the API key to be username:password
. You can use the Artifactory API key instead of the password, but you still have to provide the username, as described as a fourth option in the API docs.