From 205efbafced0e42e391ed5622362674ae84dd0d4 Mon Sep 17 00:00:00 2001 From: Marc Portabella Date: Fri, 19 Sep 2025 16:48:36 +0200 Subject: [PATCH] feat: Add cmd option to allow download browser driver when list roles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using a browser-based driver, it can be useful to run list-roles before the initial login to avoid unnecessary AWS configuration. However, running list-roles with a browser-based provider normally fails with a “driver not available” error. This flag ensures the driver is downloaded in such cases, eliminating the need for a two-step process. --- cmd/saml2aws/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/saml2aws/main.go b/cmd/saml2aws/main.go index 95d5cd899..7996cae67 100644 --- a/cmd/saml2aws/main.go +++ b/cmd/saml2aws/main.go @@ -154,6 +154,7 @@ func main() { cmdListRoles.Flag("cache-file", "The location of the SAML cache file (env: SAML2AWS_SAML_CACHE_FILE)").Envar("SAML2AWS_SAML_CACHE_FILE").StringVar(&commonFlags.SAMLCacheFile) listRolesFlags := new(flags.LoginExecFlags) listRolesFlags.CommonFlags = commonFlags + cmdListRoles.Flag("download-browser-driver", "Automatically download browsers for Browser IDP. (env: SAML2AWS_AUTO_BROWSER_DOWNLOAD)").Envar("SAML2AWS_AUTO_BROWSER_DOWNLOAD").BoolVar(&listRolesFlags.DownloadBrowser) // `script` command and settings cmdScript := app.Command("script", "Emit a script that will export environment variables.")