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.09k stars 563 forks source link

Trim CLI imports of whitespace please #1330

Open mattbishop opened 3 months ago

mattbishop commented 3 months ago

I was setting up a new configuration and had copy-pasted the URL from another document. I inadvertently copied a space as the beginning of the text (like https://...) and kept getting an error:

error storing password in keychain: parse " https://sso.jumpcloud.com/saml2/awsep-98082epcc-btc-non": first path segment in URL cannot contain colon

I eventually figured out it was the whitespace and fixed up the URL to be correct without the space.

However, it would be been helpful if saml2aws did the trimming on all CLI keyboard input. Pretty common mistake.