Skip to content

Commit abf673f

Browse files
committed
🐛 fix: x509 is not a single auth factor
1 parent e6fe3b5 commit abf673f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/middleware/configuration.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ func FromProfile(userProfile *profile.Profile, service profile.OscService) Middl
9595
opts,
9696
withClientCertificatBase64(userProfile.X509ClientCertB64, userProfile.X509ClientKeyB64),
9797
)
98-
} else if ak != "" && sk != "" && userProfile.Region != "" {
98+
}
99+
100+
if ak != "" && sk != "" && userProfile.Region != "" {
99101
opts = append(
100102
opts,
101103
withAkSk(ak, sk, userProfile.Region, service),

0 commit comments

Comments
 (0)