Versent / saml2aws

CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP
https://github.com/Versent/saml2aws
MIT License
2.07k stars 562 forks source link

Error authenticating to IdP.: could not install driver when using Browser as provider #901

Open wezlu opened 1 year ago

wezlu commented 1 year ago

Error Details

When we switched to using Browser as provider, we get the following error when running saml2aws login:

Error authenticating to IdP.: could not install driver: could not install driver: could not check if driver is up2date: could not run driver: exit status 126

Below is CLI output when running DUMP_CONTENT=true saml2aws login --debug:

EBU[0000] Running                                       command=login
DEBU[0000] Check if creds exist.                         command=login
DEBU[0000] Expand                                        name=/Users/fedykjuliusz/.aws/credentials pkg=awsconfig
DEBU[0000] resolveSymlink                                name=/Users/fedykjuliusz/.aws/credentials pkg=awsconfig
DEBU[0000] ensureConfigExists                            filename=/Users/fedykjuliusz/.aws/credentials pkg=awsconfig
Using IdP Account default to access Browser https://accounts.google.com/o/saml2/initsso?******&forceauthn=false
DEBU[0000] Get credentials                               helper=osxkeychain serverURL="https://accounts.google.com/o/saml2/initsso?*********&forceauthn=false"
DEBU[0000] Get credentials                               helper=osxkeychain user=*********
To use saved password just hit enter.
? Username *********
? Password ***************************************

DEBU[0009] building provider                             command=login idpAccount="account {\n  URL: https://accounts.google.com/o/saml2/initsso?*********&forceauthn=false\n  Username: *********\n  Provider: Browser\n  MFA: Auto\n  SkipVerify: false\n  AmazonWebservicesURN: urn:amazon:webservices\n  SessionDuration: 3600\n  Profile: default\n  RoleARN: \n  Region: \n}"
Authenticating as ********* ...
could not install driver: could not install driver: could not check if driver is up2date: could not run driver: exit status 126
Error authenticating to IdP.
github.com/versent/saml2aws/v2/cmd/saml2aws/commands.Login
        github.com/versent/saml2aws/v2/cmd/saml2aws/commands/login.go:107
main.main
        github.com/versent/saml2aws/v2/cmd/saml2aws/main.go:188
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_arm64.s:1172

This is run on an 🍎 M1 Macbook Pro with macOS Monterey 12.6.

Has anyone encountered this? Any recommendation on how to fix this?

ak000000047 commented 2 weeks ago

just add this argument and it will work , --download-browser-driver.