Skip to content

Commit

Permalink
Merge pull request #17 from gabriel-samfira/make-session-token-optional
Browse files Browse the repository at this point in the history
Make session token optional
  • Loading branch information
gabriel-samfira authored Nov 2, 2024
2 parents 8f4af56 + 3355853 commit 94174b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ func (c StaticCredentials) Validate() error {
return fmt.Errorf("missing secret_access_key")
}

if c.SessionToken == "" {
return fmt.Errorf("missing session_token")
}

return nil
}

Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestCredentialsValidate(t *testing.T) {
SessionToken: "",
},
},
errString: "missing session_token",
errString: "",
},
}

Expand Down

0 comments on commit 94174b7

Please sign in to comment.