Add https check
This commit is contained in:
parent
22c2a7c910
commit
444a4ddf9a
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ public class KclStsAssumeRoleCredentialsProvider implements AwsCredentialsProvid
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void acceptEndpoint(String serviceEndpoint, String signingRegion) {
|
public void acceptEndpoint(String serviceEndpoint, String signingRegion) {
|
||||||
|
if (!serviceEndpoint.startsWith("http://") && !serviceEndpoint.startsWith("https://")) {
|
||||||
|
serviceEndpoint = "https://" + serviceEndpoint;
|
||||||
|
}
|
||||||
stsClientBuilder.endpointOverride(URI.create(serviceEndpoint));
|
stsClientBuilder.endpointOverride(URI.create(serviceEndpoint));
|
||||||
stsClientBuilder.region(Region.of(signingRegion));
|
stsClientBuilder.region(Region.of(signingRegion));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue