saml2aws
saml2aws copied to clipboard
Error authenticating to IdP.: error retrieving auth response: Post "https:///api/v1/authn": http: no Host in request URL
trafficstars
Hello, I've got an issue while trying to login to Okta. Ubuntu 22.04.2. Tested Version: 2.35.0 and 2.36.10
Here is a screenshot of an issue with KDEWallet prompting for nothing but it doen't seem to be blocking (just painful)
Any thoughts please?
I'm seeing the same when attempting to login via Okta on macOS:
➜ saml2aws configure
? Please choose a provider: Okta
? Please choose an MFA OKTA
? AWS Profile saml
? URL <REDACTED>.okta.com
? Username <REDACTED>
? Password
No password supplied
No password supplied
account {
DisableSessions: false
DisableRememberDevice: false
URL: <REDACTED>.okta.com
Username: <REDACTED>
Provider: Okta
MFA: OKTA
SkipVerify: false
AmazonWebservicesURN: urn:amazon:webservices
SessionDuration: 3600
Profile: saml
RoleARN:
Region:
}
Configuration saved for IDP account: default
➜ saml2aws login
Using IdP Account default to access Okta <REDACTED>.okta.com
To use saved password just hit enter.
? Username <REDACTED>
? Password *******************
Authenticating as <REDACTED> ...
Error authenticating to IdP.: error retrieving auth response: Post "https:///api/v1/authn": http: no Host in request URL
Despite having a correctly configured url (and verifying that it's set in ~/.saml2aws), the application drops the hostname when forming the url in the login command.