Skip to content

Support Bearer Authentication for Package Registry #18541

@mcmitch

Description

@mcmitch

Summary

Add support for the use of bearer authentication for package registry. This is to support the use of oauth2 authentication to a private Gitlab PyPy registry via a custom keyring provider. Currently having to use private access tokens to authenticate.

This works:

curl --header "Authorization: Bearer <oauth2_token>" "https://gitlab<self-host>.com/api/v4/groups/<package>/-/packages/pypi/simple/"

This does not work:

curl -u "oauth2:<oauth2_token>" "https://gitlab<self-host>.com/api/v4/groups/<package>/-/packages/pypi/simple/"

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionalityneeds-mreNeeds more information for reproduction, see #9452

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions