Support_tencent_cam_international_station

It needs to be compatible with Tencent CAM International Station. The SecretID starts with IK.

Signed-off-by: ericyyyang2 <ericyyyang@tencent.com>
This commit is contained in:
ericyyyang2 2024-03-06 16:01:13 +08:00
parent 950fc06a87
commit 8459175954
1 changed files with 2 additions and 1 deletions

View File

@ -96,5 +96,6 @@ func (q *qcloudAuthCredential) getTempInstanceToken() (err error) {
}
func isSecretID(key string) (ok bool) {
return strings.Index(key, "AKID") == 0
return strings.Index(key, "AKID") == 0 || strings.Index(key, "IK") == 0
}