unifi-controller-cli icon indicating copy to clipboard operation
unifi-controller-cli copied to clipboard

Support for UI.com account with MFA?

Open rsnodgrass opened this issue 4 years ago • 5 comments

Does this support accounts which are setup with multi-factor authentication (MFA or 2FA)? I can't seem to get this to connect to the controller, but if I click on the link emitted in the logs it does load in the browser and shows json data. My guess is that this does not take the 6-digit multi-factor authentication token?

rsnodgrass avatar Nov 24 '21 10:11 rsnodgrass

Indeed, it does not support MFA. Do you have any information on how to authenticate API requests with MFA enabled?

robinsmidsrod avatar Nov 24 '21 10:11 robinsmidsrod

No, but I’ll do some research!!

On Nov 24, 2021 at 2:52 AM, <Robin Smidsrød @.***)> wrote:

Indeed, it does not support MFA. Do you have any information on how to authenticate API requests with MFA enabled?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/robinsmidsrod/unifi-controller-cli/issues/1#issuecomment-977759417), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAQY4XD2UZL6CCPCZZEMXLLUNS7VZANCNFSM5IVXBIFA).

rsnodgrass avatar Nov 24 '21 10:11 rsnodgrass

What I've found is that the recommendation is to create another "Local User" on the controller that does not have MFA activated. This account is used explicitly for API access.

rsnodgrass avatar Nov 25 '21 02:11 rsnodgrass

Yup, this is what I seem to recall as well, when I did some research about it way-back-when. I guess that means we can close this issue?

robinsmidsrod avatar Nov 25 '21 08:11 robinsmidsrod

I think so. Now, I can't get Net::SSLeay to actually install on the Mac that I use all the time. :(

rsnodgrass avatar Nov 25 '21 17:11 rsnodgrass