Skip to content

Ability to switch between Bearer and Basic Auth (Bun install) #18276

@AvaYnE2

Description

@AvaYnE2

What is the problem this feature would solve?

Since we're using a private registry that exclusively supports Basic Authentication, we're unable to authenticate during bun install because Bun currently only supports Bearer tokens.

What is the feature you are proposing to solve the problem?

Implement automatic authentication detection based on provided credentials: if credentials are in the form of username:password, default to Basic Auth; if a token is provided, use Bearer authentication.
Another alternative would be introducing a command-line flag during installation to explicitly set the authentication method.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions