How to login to HTTP stream?

289 views
Skip to first unread message

Elliott Balsley

unread,
Jun 19, 2018, 2:04:10 AM6/19/18
to motioneye
I have set streaming authentication mode to Basic, but I can't login.  I see this in the log file.  I've tried both user accounts admin and user, which work in the web UI.  Is there another place I have to define the stream password?

handle_basic_auth: motion-stream - failed auth attempt from 192.168.3.101

Kevin Lever

unread,
Jun 19, 2018, 4:43:59 PM6/19/18
to motioneye
Something like this?  Or did you have something else in mind?

Elliott Balsley

unread,
Jun 19, 2018, 5:02:40 PM6/19/18
to motioneye
Yes, I want to use that kind of URL with Digest or Basic authentication, but I don't know how to make either work.

Kevin Lever

unread,
Jun 19, 2018, 9:34:40 PM6/19/18
to motioneye
You need an ".htaccess" file in your web server's virtual root directory.  I believe there needs to be a groups file and a user/password file. I haven't done it in a very long time, sorry.  Google ".htaccess"  and see if you can figure it out.

Elliott Balsley

unread,
Jun 20, 2018, 12:18:32 AM6/20/18
to motioneye
Are you sure that will work with MotionEyeOS?  We are not using apache.  In fact, I can't figure out what web server it's using, it seems to be homemade.  By inspecting the webpage, I found that the web root is /usr/lib/python2.7/site-packages/motioneye.  But if I place a test.html file in there, it cannot load in a browser, I get 
{"error": "not found"}

So that makes me think .htaccess would not work either.

There is already an option in the MotionEye GUI for Digest or Basic authentication, but it's not documented.
Reply all
Reply to author
Forward
0 new messages