Skip to content

Commit

Permalink
Wagon should use remote repository instead of proxy repository for re…
Browse files Browse the repository at this point in the history
…po authentication
  • Loading branch information
andrzejj0 authored and slawekjaranowski committed Dec 6, 2022
1 parent 3003f8b commit 3e4aee0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ private Optional<AuthenticationInfo> getAuthenticationInfo( RemoteRepository rep
.map( authentication -> new AuthenticationInfo()
{{
try ( AuthenticationContext authCtx = AuthenticationContext
.forProxy( mavenSession.getRepositorySession(), repository ) )
.forRepository( mavenSession.getRepositorySession(), repository ) )
{
ofNullable( authCtx.get( AuthenticationContext.USERNAME ) )
.ifPresent( this::setUserName );
Expand Down

0 comments on commit 3e4aee0

Please sign in to comment.