Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws): add SessionDuration for okta-aws-cli #402

Merged
merged 5 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/box/box.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ type OktaConfig struct {
OIDCClientID string `yaml:"oidcClientID"`
// OrgDomain is the hostname of the Okta instance.
OrgDomain string `yaml:"orgDomain"`
// SessionDuration is the TTL for the session in seconds.
SessionDuration uint `yaml:"sessionDuration"`
}

type DeveloperEnvironmentConfig struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/cli/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func runOktaAwsCLI(ctx context.Context, b *box.Config, args ...string) error {
"OKTA_ORG_DOMAIN="+b.AWS.Okta.OrgDomain,
"OKTA_AWS_ACCOUNT_FEDERATION_APP_ID="+b.AWS.Okta.FederationAppID,
"OKTA_OIDC_CLIENT_ID="+b.AWS.Okta.OIDCClientID,
fmt.Sprintf("OKTA_AWSCLI_SESSION_DURATION=%d", b.AWS.Okta.SessionDuration),
)
return cmd.Run()
}
Expand Down