File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
image-builder-bob/pkg/proxy
image-builder-mk3/pkg/auth Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ func (a MapAuthorizer) AddIfNotExists(other MapAuthorizer) MapAuthorizer {
6161 }
6262 for k , v := range other {
6363 if _ , ok := a [k ]; ok {
64+ log .Infof ("Skip adding key: %s to MapAuthorizer as it already exists" , k )
6465 continue
6566 }
6667 res [k ] = v
Original file line number Diff line number Diff line change @@ -208,9 +208,9 @@ func (a AllowedAuthFor) additionalAuth(domain string) *Authentication {
208208 dec , err := base64 .StdEncoding .DecodeString (ath )
209209 if err == nil {
210210 segs := strings .Split (string (dec ), ":" )
211- if len (segs ) == 2 {
211+ if len (segs ) > 1 {
212212 res .Username = segs [0 ]
213- res .Password = segs [1 ]
213+ res .Password = strings . Join ( segs [1 :], ":" )
214214 }
215215 }
216216 return res
You can’t perform that action at this time.
0 commit comments