Skip to content
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

API calls need to authenticate #22

Closed
Quax1507 opened this issue Jun 28, 2015 · 6 comments
Closed

API calls need to authenticate #22

Quax1507 opened this issue Jun 28, 2015 · 6 comments

Comments

@Quax1507
Copy link

In former versions I was able to place API calls without authentication like:

https://ip-of-zway:8083/ZAutomation/api/v1/devices/DummyDevice_95

Now I Need to authenticate via GUI before.
I use an iPhone app (Geofancy) which only can do HTTP basic authentication. Used that before with Nginx (reverse proxy).

I would like to have the possibility to disable GUI authentication or switch to HTTP basic authentication!

@Quax1507
Copy link
Author

BTW: it makes no difference if checkbox "Allow public access to Z-Wave API" is set or not

@PoltoS
Copy link
Member

PoltoS commented Jun 28, 2015

Not yet, it is always public so far (will change soon).

But you are trying not Z-Wave API, but ZAutomation (HA) API. This one is restricted. You need to authenticate yourself or add Anonymous user and give rights to it.

@PoltoS PoltoS closed this as completed Jun 28, 2015
@Quax1507
Copy link
Author

You are right! I am using ZAutomation API.
But HOW can I grant access to anonymous user for this API only?

@PoltoS
Copy link
Member

PoltoS commented Jun 29, 2015

Please go in Settings->Admin and add user with anonymous role (in latest versions)

@Quax1507
Copy link
Author

Does not work. I created anonymous user named "anonymous".

Opening
http://myip:8083/ZAutomation/api/v1/devices/DummyDevice_95

Error is now:
{"data":null,"code":404,"message":"404 Not Found","error":"Device DummyDevice_95 doesn't exist"}

When I first log in as admin in same browser (or other browser tab) it works!

@PoltoS
Copy link
Member

PoltoS commented Jun 30, 2015

Please move it into a room and give Anonymous user access to the room in users management tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants