Skip to content

Commit cbd5b56

Browse files
committed
fix: add configurable duration
1 parent 1c92bc0 commit cbd5b56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME := aws-cli-auth
2-
VERSION := v0.6.2
2+
VERSION := v0.6.3
33
REVISION := $(shell git rev-parse --short HEAD)
44

55
LDFLAGS := -ldflags="-s -w -X \"github.com/dnitsch/aws-cli-auth/cmd.Version=$(VERSION)\" -X \"github.com/dnitsch/aws-cli-auth/cmd.Revision=$(REVISION)\" -extldflags -static"

internal/auth/awssts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func LoginStsSaml(samlResponse string, role *util.AWSRole) (*util.AWSCredentials
3333
PrincipalArn: aws.String(role.PrincipalARN), // Required
3434
RoleArn: aws.String(role.RoleARN), // Required
3535
SAMLAssertion: aws.String(samlResponse), // Required
36-
DurationSeconds: aws.Int64(3600),
36+
DurationSeconds: aws.Int64(int64(role.Duration)),
3737
}
3838

3939
resp, err := svc.AssumeRoleWithSAML(params)

0 commit comments

Comments
 (0)