Skip to content

Commit

Permalink
build(deps): bump github.com/aws/aws-sdk-go-v2/service/cognitoidentit…
Browse files Browse the repository at this point in the history
…yprovider from 1.33.0 to 1.35.1 (#315)

* build(deps): bump github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider

Bumps [github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider](https://github.com/aws/aws-sdk-go-v2) from 1.33.0 to 1.35.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/ec2/v1.35.1/CHANGELOG.md)
- [Commits](aws/aws-sdk-go-v2@service/s3/v1.33.0...service/ec2/v1.35.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix region

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Caleb Doxsey <[email protected]>
  • Loading branch information
dependabot[bot] and calebdoxsey committed Mar 6, 2024
1 parent 9da6fdd commit b59d162
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/aws/aws-sdk-go-v2 v1.25.2
github.com/aws/aws-sdk-go-v2/config v1.27.6
github.com/aws/aws-sdk-go-v2/credentials v1.17.6
github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.33.0
github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.35.1
github.com/client9/misspell v0.3.4
github.com/gabriel-vasile/mimetype v1.4.3
github.com/go-chi/chi/v5 v5.0.12
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 h1:EtOU5jsPdIQNP+6Q2C5
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2/go.mod h1:tyF5sKccmDz0Bv4NrstEr+/9YkSPJHrcO7UsUKf7pWM=
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU=
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY=
github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.33.0 h1:+mn7Fa/lPsIBuFTofJAkmrhhr2WhJaUOglyjLk5mP4A=
github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.33.0/go.mod h1:5T2eDr7HaF4UhgbTHRojgxNIIfnqJ1HrB1ey/09Pts4=
github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.35.1 h1:/2fRBLrZ73vB4gpKLSST5ImkgBtRU8AE54pn+uDLKSs=
github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.35.1/go.mod h1:W9y9iGm2v8qWXa/LOvXiuwORYLlj2VZr2c850yjR7Rs=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 h1:EyBZibRTVAs6ECHZOw5/wlylS9OcTzwyjeQMudmREjE=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1/go.mod h1:JKpmtYhhPs7D97NL/ltqz7yCkERFW5dOlHyVl66ZYF8=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.4 h1:jRiWxyuVO8PlkN72wDMVn/haVH4SDCBkUt0Lf/dxd7s=
Expand Down
1 change: 1 addition & 0 deletions pkg/directory/cognito/cognito_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func TestCognito(t *testing.T) {
cognito.WithAccessKeyID("ACCESS_KEY_ID"),
cognito.WithHTTPClient(httpClient),
cognito.WithLogger(zerolog.New(zerolog.NewTestWriter(t))),
cognito.WithRegion("us-east-1"),
cognito.WithSecretAccessKey("SECRET_ACCESS_KEY"),
cognito.WithSessionToken("SESSION_TOKEN"))

Expand Down
8 changes: 4 additions & 4 deletions pkg/directory/cognito/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ func (p *Provider) getClient(ctx context.Context) (*cognitoidentityprovider.Clie
}
options = append(options, awsconfig.WithHTTPClient(p.cfg.getHTTPClient()))

if p.cfg.region != "" {
options = append(options, awsconfig.WithRegion(p.cfg.region))
}

cfg, err := awsconfig.LoadDefaultConfig(ctx, options...)
if err != nil {
return nil, err
}

if p.cfg.region != "" {
cfg.Region = p.cfg.region
}

p.client = cognitoidentityprovider.NewFromConfig(cfg)
return p.client, nil
}

0 comments on commit b59d162

Please sign in to comment.