-
Notifications
You must be signed in to change notification settings - Fork 877
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
Allow Authentication via Http Header #1042
Comments
Are there any plans on fixing this? |
It looks like this isn't supported by Maven: According to the documentation, it seems like Maven only supports basic authentication or SSH keys. |
@eirslett: Thank you for taking your time to look into this. This is indeed supported by Maven, the So the example I had a small bug in my pull request from yesterday, but with the latest commit the HTTP-Header authentication is working as expected. |
I just recognized that my documentation link from above is outdated since Maven 3.9.0, but the following page is telling the same about HTTP headers: https://maven.apache.org/guides/mini/guide-resolver-transport.html#custom-http-headers |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Authentication for downloading npm and node (goal
install-node-and-npm
) is only possible via username and password. In a CI pipeline one may usually use a token, which needs a authentication via an http header.See coding in com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader#execute.
What is the expected behavior?
I'd like to use kind of following server configuration in my maven settings
with the server id configured in the plugin configuration.
E.g. gitlab added the opportunity to use the
CI_JOB_TOKEN
for authentication with an http header, see issue 30650 here. Using a token like this, allow to drop any configured token, because it is created for every pipeline individually. Using a job token with a username und password authentication unfortunately is not possible.Please mention your frontend-maven-plugin and operating system version.
The text was updated successfully, but these errors were encountered: