Closed ManuelLeiner closed 10 months ago
Seems like a bug to me @Ninja243
Yep, I'm looking into this, thanks!
@ManuelLeiner this should be fixed with version 2.0.10 which should also be available on brew now. If it still doesn't work or I missed something, feel free to re-open this Issue!
I finally could test it out and it works but you might have to update the README.md
The following command (from readme) leads to the error message below
otc-auth login iam \
--os-username ${username} \
--os-password "${password}" \
--os-domain-name ${domain} \
--os-user-domain-id ${userid} \
--totp ${totp} \
--region ${project} \
--overwrite-token
2024/01/26 12:39:42 when using MFA (totp), the userID should be given, not the username
The actual command that is working is:
otc-auth login iam \
--os-password "${password}" \
--os-domain-name ${domain} \
--os-user-domain-id ${userid} \
--totp ${totp} \
--region ${project} \
--overwrite-token
Thanks, I missed that! The Readme has been updated 👍
Setup
Actual Behavior
Since 2.0.0 (that is why I didn't upgrade back then) I cannot login via
Service Provider Login (IAM)
As soon as I provide
--totp
for MFA I have to provide all of the parameters above. All variables are properly exported / env variables.As soon as I unset one of Username or UserID, I get the following messages:
or:
Expected Behavior
Using the latest version I can login via
otc-auth login iam --totp
.