Skip to content

Commit

Permalink
Update features in bos and iam
Browse files Browse the repository at this point in the history
  • Loading branch information
duanliguo committed Oct 21, 2022
1 parent 7a6e184 commit f009be1
Show file tree
Hide file tree
Showing 26 changed files with 1,711 additions and 48 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ bce-sdk-go
| |--eni //ENIC弹性网卡
| |--esg //企业安全组
| |--etGateway //专线网关
| |--iam //身份管理
| |--rds //云数据库
| |--scs //SCS服务目录
| |--sms //SMS服务目录
Expand Down Expand Up @@ -257,6 +258,7 @@ SSL证书服务 | CERT | github.com/baidubce/bce-sdk-go/services/cert
ENIC弹性网卡 | ENIC | github.com/baidubce/bce-sdk-go/services/eni | [ENIC.md](./doc/ENIC.md)
企业安全组 | ESG | github.com/baidubce/bce-sdk-go/services/esg | [ESG.md](./doc/ESG.md)
专线网关 | EtGateway | github.com/baidubce/bce-sdk-go/services/etGateway | [ETGateway.md](./doc/ETGateway.md)
身份管理 | IAM | github.com/baidubce/bce-sdk-go/services/iam | [IAM.md](./doc/IAM.md)
内网DNS | LOCALDNS | github.com/baidubce/bce-sdk-go/services/localDns | [LOCALDNS.md](./doc/LOCALDNS.md)
云数据库 | RDS | github.com/baidubce/bce-sdk-go/services/rds | [RDS.md](./doc/RDS.md)
分布式缓存服务 | SCS | github.com/baidubce/bce-sdk-go/services/scs | [SCS.md](./doc/SCS.md)
Expand Down
4 changes: 2 additions & 2 deletions auth/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func (b *BceV1Signer) Sign(req *http.Request, cred *BceCredentials, opt *SignOpt
signDate = util.FormatISO8601Date(opt.Timestamp)
}

// Set security token if using session credentials
if len(cred.SessionToken) != 0 {
// Set security token if using session credentials and session token not in param
if len(cred.SessionToken) != 0 && req.Param(http.BCE_SECURITY_TOKEN) == "" {
req.SetHeader(http.BCE_SECURITY_TOKEN, cred.SessionToken)
}

Expand Down
2 changes: 1 addition & 1 deletion bce/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

// Constants and default values for the package bce
const (
SDK_VERSION = "0.9.136"
SDK_VERSION = "0.9.137"
URI_PREFIX = "/" // now support uri without prefix "v1" so just set root path
DEFAULT_DOMAIN = "baidubce.com"
DEFAULT_PROTOCOL = "http"
Expand Down
Loading

0 comments on commit f009be1

Please sign in to comment.