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.08k stars 562 forks source link

Okta with YubiKey stopped working for me #1077

Open svenwal opened 1 year ago

svenwal commented 1 year ago

I have had my setup with Okta and Yubikey running for a long time but this week or last week it stopped working. saml2aws errors with an error 400

$ saml2aws login             
Using IdP Account default to access Okta https://xxxx.okta.com/home/amazon_aws/xxxxxx
To use saved password just hit enter.
? Username xxxxxx
? Password 

Authenticating as sven.walther@konghq.com ...
Touch the flashing U2F device to authenticate...
  ==> Touch accepted. Proceeding with authentication
Error authenticating to IdP.: error verifying MFA: error retrieving verify response: request for url: https://konghq.okta.com/api/v1/authn/factors/fxxxxxx/verify failed status: 400 Bad Request

Logging in with the browser to Okta still works with Yubikey

$ saml2aws --version
2.36.8

Config:

$ cat ~/.saml2aws
[default]
name                    = default
app_id                  = 
url                     = https://xxxx.okta.com/home/amazon_aws/xxxxx
username                = xxxxxxxx
provider                = Okta
mfa                     = YUBICO TOKEN:HARDWARE
skip_verify             = false
timeout                 = 0
aws_urn                 = urn:amazon:webservices
aws_session_duration    = 43200
aws_profile             = sandbox
resource_id             = 
subdomain               = 
role_arn                = 
region                  = 
http_attempts_count     = 
http_retry_delay        = 
credentials_file        = 
saml_cache              = false
saml_cache_file         = 
target_url              = 
disable_remember_device = false
disable_sessions        = false
prompter                = 
roptoor commented 1 year ago

This is affecting our organization/users also, and looks to be due to the changes introduced in #1039 and fixed in #1059

Mystik738 commented 1 year ago

Having similar issues; currently reverted to 2.36.7 which allows us to login.

roptoor commented 1 year ago

Looks to be fixed with the merge of #1059. @mapkon - any chance we can get a new release tagged?