Page 1 of 1

Authentication failed from zmNinja in browser

Posted: Thu Dec 01, 2016 12:27 pm
by wbaccari
I'm trying to use zmNinja from a browser on the same machine where zm is installed.

I followed this guide https://github.com/pliablepixels/zmNinj ... rom-Source.

When I try to setup a new connection I always get a 'ZoneMinder authentication failed' error message.

I am not using zm authentication.

I tried using both 'http://localhost/zm' and 'http://192.168.2.13/zm' as zm portal URL. The connection from the zmNinja Android app worked using http://192.168.2.13/zm.

I tried setting up the ProxyURL in ionic.config.json to the same URLs above without success.

In the versbose infromation logged in the terminal when running 'ionic serve' with the '-c' option I found:

Reachability test..http://localhost/zm/index.php
Failed reachability on http://localhost/zm/index.php with error {"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://localhost/zm/index.php","headers ... ation/json, text/plain, */*"}},"statusText":""}


Does anybody has any idea about how to make this work?

Re: Authentication failed from zmNinja in browser

Posted: Fri Dec 02, 2016 5:20 pm
by knight-of-ni
Moved to the mobile apps forum

Re: Authentication failed from zmNinja in browser

Posted: Fri Dec 02, 2016 8:56 pm
by asker
Here is a simpler way.

Just copy the entire "www" directory of zmNinja into your apache www/zmNinja directory (create zmNinja) then load up a browser and get to http://server/zmNinja/index.html