Skip to content

Publishing to artifactory instance with API key (not a JWT token) #3576

Description

@dgel

I'm trying to use pdm to upload a project to a private artifactory instance. This instance has the option to generate an API key, which we use in our automation. I've used uv to do successfully this in the past, using an empty string as the username and the API key as the password. However, when I try this in pdm, I get a 401 unauthorized error.

this is the commandline I'm trying to use:

pdm publish --repository my_repository --username "" --password "<my_api_key>"

I've also tried the following for username: __token__, <username>, username@domain, all without success. The only successful option is to supply the username and password. But I'd like to keep using the API key if possible. Is there support in pdm for this method of authentication?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions