ioBroker / ioBroker.vis.cordova

Cordova APP for ioBroker.vis
Other
16 stars 7 forks source link

Login with Authentication not possible #14

Open Tan-DE opened 7 years ago

Tan-DE commented 7 years ago

A login with username and password is not possible via Android App (SSL and Non-SSL). Tried via Web-Adapter and intergrated Socket.io and seperate Socket.io.

ioBroker Error Log Message: error: web.0 socket.io unknown user (the user exists with a simple and short password)

In-App Message: "Alert - Username oder Kennwort flash" (<< small typo, should be called "falsch" in german)

GermanBluefox commented 7 years ago

Please try with 1.1.0 one more time. You need socket.io 1.8.3 and web 2.1.5

Tan-DE commented 7 years ago

Hi, just tried again with the mentioned versions... now, the app connects correcly, but only after 5-10 (!) retries?!

2017-10-15 23:32:23.681 - debug: web.0 Logged in: tan 2017-10-15 23:32:23.682 - debug: web.0 socket.io client tan connected 2017-10-15 23:32:23.787 - info: web.0 2017-10-15T21:32:23.787Z Connected system.user.tan 2017-10-15 23:32:30.529 - debug: web.0 Logged in: tan 2017-10-15 23:32:30.530 - debug: web.0 socket.io client tan connected 2017-10-15 23:32:30.738 - info: web.0 2017-10-15T21:32:30.738Z Connected system.user.tan 2017-10-15 23:32:37.028 - debug: web.0 Logged in: tan 2017-10-15 23:32:37.029 - debug: web.0 socket.io client tan connected 2017-10-15 23:32:37.084 - info: web.0 2017-10-15T21:32:37.084Z Connected system.user.tan 2017-10-15 23:32:44.670 - debug: web.0 Logged in: tan 2017-10-15 23:32:44.670 - debug: web.0 socket.io client tan connected 2017-10-15 23:32:44.710 - info: web.0 2017-10-15T21:32:44.710Z Connected system.user.tan 2017-10-15 23:32:52.504 - debug: web.0 Logged in: tan 2017-10-15 23:32:52.505 - debug: web.0 socket.io client tan connected 2017-10-15 23:32:52.547 - info: web.0 2017-10-15T21:32:52.547Z Connected system.user.tan 2017-10-15 23:32:58.997 - debug: web.0 Logged in: tan 2017-10-15 23:32:58.998 - debug: web.0 socket.io client tan connected 2017-10-15 23:32:59.047 - info: web.0 2017-10-15T21:32:59.047Z Connected system.user.tan 2017-10-15 23:33:05.639 - debug: web.0 Logged in: tan 2017-10-15 23:33:05.640 - debug: web.0 socket.io client tan connected 2017-10-15 23:33:05.679 - info: web.0 2017-10-15T21:33:05.679Z Connected system.user.tan 2017-10-15 23:33:06.546 - debug: web.0 2017-10-15T21:33:06.545Z Request authenticate [system.user.tan] 2017-10-15 23:33:06.843 - debug: web.0 Subscribes: vis.0.control.instance, vis.0.control.data, vis.0.control.command 2017-10-15 23:33:08.664 - debug: web.0 Subscribes: vis.0.control.instance, vis.0.control.data, vis.0.control.command, javascript.0.lichtautomatik_kellertreppe, javascript.0.bewegungsmeldungen, zwave.0.NODE26.SWITCH_BINARY.Switch_1

2017-10-15 19 11 02

foxriver76 commented 6 years ago

Is there any progress on this? I'm having trouble with using SSL in my local network. (See https://forum.iobroker.net/viewtopic.php?f=30&p=165540#p165540)

GermanBluefox commented 6 years ago

Please install for that other web instance without authentication and limit up addresses to localhost

foxriver76 commented 6 years ago

I'm not sure how this can help me in my case. I would need a web instance without authentication where users in my network can access vis and set states with vis but not access the edit mode of vis. The other web instance should have authentication where only authenticated useres with the the related permission can edit vis/flot etc.

The second instance is not the problem. The problem is having an instance where everyone can access and control vis without the ability to edit. I tried creating a user with "write State" permission and not "write Object" permission. But the problem is this dosen't change a thing (The user isn't able to write states). Does it only affect states which are created after permission change?

Only approach that works partially is changing every state which can be set in vis and changing the permission of these states to "everyone can write state". But it is very time consuming to change every states permission by hand.