-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for 2FA in cmk #145
Comments
@harikrishna-patnala could you advise how we can detect if 2FA is enabled or an API needs some kind of inputs -> any way to implement that in a better UX way for cmk ? |
I checked with help from @harikrishna-patnala and found that:
This means 2FA support in cmk isn't a blocker for cmk / 2FA users. They can still call this manually as the CLI/prompt suggests. |
Ideally the improvement in
Query String Parameters must pass:
|
I have both api/secretkey configured and working. When trying to use createAccount I am getting 2fa failure despite issuing a successful 'login' and 2fa code and receiving a success message. (admin) 🐱 > login username=admin password='password' (admin) 🐱 > validateUserTwoFactorAuthenticationCode codefor2fa=643762 (admin) 🐱 > createAccount username=testuser email=info@test.net firstname=Test lastname=User password=testpassword roleid=ce5a99c7-3f9a-4ba1-b52e-f0a1155f2cdf so this is not implemented or am I doing something else wrong. EDIT: oh my bad this IS a feature request so I assume not implemented. sorry |
Hi @Jayd603 you should either just use apikey-secretkey which doesn’t need 2FA or set username and password and use the validate code api. You’re doing both. If you want to use 2FA, then remove the apikey-secretkey by running the set command with value as blank, next set username and password. Try again. |
Ahh I see. api/secretkey do not work with 2fa enabled. Using user/pass with 2fa it worked just fine. Thank you very much. |
Add support for 2FA in cmk -> automate login and inputs.
The text was updated successfully, but these errors were encountered: