Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API support for Preemptive Bearer Token #540

Open
afrimberger opened this issue Dec 19, 2024 · 0 comments
Open

API support for Preemptive Bearer Token #540

afrimberger opened this issue Dec 19, 2024 · 0 comments
Assignees
Labels

Comments

@afrimberger
Copy link

Current behavior

The UI allows setting the HTTP authentication method Preemptive Bearer Token for NPM proxy repositories:
image

However, the REST API currently only supports setting the auth type to username or ntlm:

image

See HttpClientConnectionAuthenticationAttributes

Expected behavior

The REST api endpoints for NPM repositories support the auth type "bearerToken".

How to solve?

Parts of the code already respect the authType=bearerToken. I will add an MR with some code demonstrating how to fix it.
I would be really happy if we can get these minimal adaptions upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants