Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-495

Provide AuthenticationSelector based on host/realm instead of repository id

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Resolver
    • None

    Description

      Currently the DefaultAuthenticationSelector only returns authentication info based on the repository id. In order to reuse the same authentication for multiple repositories (on the same or even on different servers) it should be possible to add authentication for a host (and potentially port/realm/scheme).

      Apache HttpClient uses the AuthScope class (https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/auth/AuthScope.html) to bind credentials to requests.

      Compare with https://datatracker.ietf.org/doc/html/rfc7235#section-2.2.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: