[ 
https://issues.apache.org/jira/browse/MNG-5585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15385933#comment-15385933
 ] 

justin georgeson commented on MNG-5585:
---------------------------------------

There is an edge case here though, if two separate servers declare the same 
authentication realm, and you have different credentials on each server. So it 
would make sense to be able to set both hostname and realm, to differentiate.

> match server credentials based on server realm
> ----------------------------------------------
>
>                 Key: MNG-5585
>                 URL: https://issues.apache.org/jira/browse/MNG-5585
>             Project: Maven
>          Issue Type: Improvement
>          Components: Settings
>    Affects Versions: 3.x / Backlog
>            Reporter: nicolas de loof
>
> credentials for repositories are identified based on arbitrary ID. This is 
> error prone and fragile design, especially as there's no way to diagnose 
> which credentials are used (see MNG-5584).
> A realm-based server matching would better follow the way HTTP security is 
> defined, and could be easily used for other protocols based (for sample) on 
> domain name.
> <server>
>      <id>xxx</id>  
>      <realm>[optional protocol://]repo.acme.com</realm>
>     ..
> </server>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to