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

Support Gitlab/Github repos as mirrored repository #1636

Closed
stephanpelikan opened this issue Nov 9, 2022 · 2 comments
Closed

Support Gitlab/Github repos as mirrored repository #1636

stephanpelikan opened this issue Nov 9, 2022 · 2 comments
Labels
enhancement Improvement of existing feature request
Milestone

Comments

@stephanpelikan
Copy link

Request details

Gitlab uses this Maven configuration for authentication:

    <server>
      <id>my-gitlab</id>
      <configuration>
        <httpHeaders>
          <property>
            <name>Private-Token</name>
            <value>XXXXXXXXXXXX</value>
          </property>
        </httpHeaders>
      </configuration>
    </server>

In our setup we would need this kind of configuration: Providing a http-header as an alternative to username/password. This would fit to Gitlab's "Private-Token" as well as to repositories using "Authorization" header like Github:

      <configuration>
        <httpHeaders>
          <property>
            <name>Authorization</name>
            <value>Bearer XXXXXXXXXXXXXXXXXXXX</value>
          </property>
        </httpHeaders>
      </configuration>
@dzikoysk dzikoysk added enhancement Improvement of existing feature request and removed triage labels Nov 9, 2022
@dzikoysk
Copy link
Owner

dzikoysk commented Nov 9, 2022

You should be able now to define custom authentication methods as follows:

obraz

It'll be available in the next release, but you can also test this using our snapshots builds for Docker/standalone JAR when CI will finish publication tasks.

@stephanpelikan
Copy link
Author

Whow! You're faster than light 👍 . I will test it for sure, thanks!

@dzikoysk dzikoysk added this to the 3.2.0 milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing feature request
Projects
None yet
Development

No branches or pull requests

2 participants