-
Notifications
You must be signed in to change notification settings - Fork 33
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 Basic authentication #4
Comments
Hi, thanks for this feature request. It makes sense and I will add it in a future version. |
Your App looks great - is this possible now? I would like to use it with Openhab, so authentication is crucial... |
Sorry, I did not find any time yet (though it sure makes sense). The time for the feature is not the problem, but in the meantime a lot has changed for Swift and iOS. You can use iControl Web (including Apple Watch) with openHABThe documentation of openHAB says that it Alternative Proposal to authenticate access to openHAB and still use iControl WebBasic Auth WorkaroundIf you already run an nginx I would propose that you could use a workaround for the problem, i.e. use rewriting and map all commands. Use a password-like string as a prefix to the real path. Instead of simply proxying everything Then you use the I am not an nginx expert. Test if the real commands are still passed. If yes, catch everything in a last rule and send it to the nirvana Keep in mind to always use https, because in both cases (complicatedPath or basic auth), the clear password would be visible to a MITM attack. (Not using https with the complicatedPathMethod is worse because URLs could be captured by proxies, browser history, etc). If you still want to use basic auth elsewhere, I propose that you create a dedicated virtual host and use name based virtual hosts. You can also use this method to expose only a subset of commands, i.e. |
So entering a url like |
URLs like |
Therefore there would need to be code to interpret it. |
any updates on this? |
Many SmartHome controllers are uses Basic authentication to access to HTTP API.
I use Raspberry Pi with app Z-Way to control my Z-Wave Devices. Z-Way requires login and password for HTTP commands.
I know many other controllers that supported basic authentication, so the list of compatible SmartHome controllers will increase, if you add the support of sending HTTP commands with basic authorization.
The text was updated successfully, but these errors were encountered: