[Feature Request] : Updated UniFi controller integration/widget #4753
-
DescriptionWhen Ubiquiti made an update to the user management of the UI Console (aka needing 2FA), all my UniFi widget config stopped working. OtherNo response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
update: the API error seen from Homepage is : API Error: HTTP Error 499 |
Beta Was this translation helpful? Give feedback.
-
Do you have documentation of some api key change? I dont see anything. And to get around the MFA you can create a local account, which I doubt has stopped working |
Beta Was this translation helpful? Give feedback.
-
local account did the trick - thanks for the heads up! |
Beta Was this translation helpful? Give feedback.
-
Just wanted to say that API key access would be nice if it's possible. I also managed to get the local account working, so thanks for the hint. Took a few restarts and container prunes, but I got there. |
Beta Was this translation helpful? Give feedback.
-
I've been using this widget for a long time - over a year. Yesterday I switched over from running the controller software in a container to actually using the network plugin on the new Dream Router 7. This means it's no longer running virtualised on a separate IP, but is actually integrated into the router itself. Both homepage widgets stopped working when I modified the address. I.e. the widget and the service. Digging through the API docs on unifi, I believe there were breaking changes from the controller software. New URLs: instead of: However, it does appear that continues to work, which means I can potentially just adjust the prefix in my config.. It's possible the response body is different. I will paste anonymized sample at bottom of message. A larger problem is the new way of issuing credentials. They allow the capability to generate an API key, which is then passed as the value of header I can't get the user/pass local account to work at all, and I can only generate an API key for the admin user. Appreciate this is brand new hardware that was just released, hope you can support. The following was retrieved from
Lots of interesting information there including a sample of recent pings and speedtests. I believe the destination sites are hard coded. |
Beta Was this translation helpful? Give feedback.
-
I patched my local installation and recompiled, largely based on your branch. Works fine for me, no issues. Things I noticed while implementing my patch. The It may also be the case that user/pass are still available. For DreamRouter7: The udmpPrefix (/proxy/network) applies (as we've tested it)
Also, if we ARE using the API key, it may not be worth trying to login. Alternatively we can abandon the use of keys and focus on getting login to work with the variants I outlined above. I suspect it was failing just due to the changes I've outlined not that they've disabled it. The API keys feel like an afterthought and security doesn't seem like a strong point here. Passwords are sent in plaintext, and the api keys can ONLY be generated locally for the admin user so there's no View-only API key available, and no benefit over username/password. So if we can finesse the login to be compatible it may not be necessary to increment the version. |
Beta Was this translation helpful? Give feedback.
Great, thanks for your help.
#4860