jokob-sk / NetAlertX

🖧🔍 WIFI / LAN intruder detector. Scans for devices connected to your network and alerts you if new and unknown devices are found.
GNU General Public License v3.0
3.15k stars 186 forks source link

Unifi (UNFIMP) plugin authentication - 2 factor required by unifi #754

Closed DavidFederX closed 2 months ago

DavidFederX commented 4 months ago

Is there an existing issue for this?

Current Behavior

can't connect to unifi due to the forced 2 factor auth.

Expected Behavior

need to login to sync with unifi

Steps To Reproduce

activate UNFIMP settings, ip, user, pw etc save get the 2 factor code in mail (since no 2 factor app setup at unifi) --> no sync

app.conf

No response

docker-compose.yml

No response

What branch are you running?

Production

app.log

No response

Debug enabled

jokob-sk commented 4 months ago

Hi there @DavidFederX !

Thanks for using NetAlertX!

I've just tried and the plugin seems to work just fine. Please make sure you are logging into your UNIFI controller. A 2-factor challenge is not required when logging into the controller on your local network.

image

image

jokob-sk commented 3 months ago

No reply for a week -> Closing

DavidFederX commented 2 months ago

Hello, sorry for the (very) late reply. I've well set the parameters and got the login failed in the logs. image image 100% sure of my ip, username and pw. Unifi forced using 2 factors a few months ago. Do you indeed have latest version of unifi?

DavidFederX commented 2 months ago

sorry, I realize I did a mistake. it actually works :)