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

saml2aws login does not show me any login #791

Open mrojasbb opened 2 years ago

mrojasbb commented 2 years ago

Hello, when I run saml2aws login the command sometimes show me the login, but there are sometimes that hasn't showed me anything, like if the command does not run at all. Any suggestion about that? Thanks!!

jmctune commented 2 years ago

If you run saml2aws login and your credentials are not yet expired, the program will just return.

saml2aws login --verbose                                                                               ☁️ services
DEBU[0000] Running                                       command=login
DEBU[0000] check if Creds Exist                          command=login
DEBU[0000] Expand                                        name=/Users/me/.aws/credentials pkg=awsconfig
DEBU[0000] resolveSymlink                                name=/Users/me/.aws/credentials pkg=awsconfig
DEBU[0000] ensureConfigExists                            filename=/Users/me/.aws/credentials pkg=awsconfig
DEBU[0000] credentials are not expired skipping          command=login

If you really need to, you can open your ~/.aws/credentials file against the appropriate profile and remove the generated token strings and expiry date, or use saml2aws login --force (better option).