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

Digest authorization? #3

Open
wirephoto opened this issue Nov 27, 2017 · 1 comment
Open

Digest authorization? #3

wirephoto opened this issue Nov 27, 2017 · 1 comment

Comments

@wirephoto
Copy link

It seems to support basic authorization but is failing with digest auth. One of my cameras won't do basic.

I'm not a programmer, but I can read code a little. This seems to rely on the node "http" module, which is basic only. Would it be trivial to change it over to "request" module, which seems to support digest authorization? I may try to myself, but it will take me a while since I seem to be better at reading code than creating it.

Thanks--this is a great help. I don't like allowing my cheap cameras to speak directly to the outside world. This helps me isolate them.

@twkevinzhang
Copy link

twkevinzhang commented Jul 19, 2021

It seems to support basic authorization but is failing with digest auth. One of my cameras won't do basic.

I'm not a programmer, but I can read code a little. This seems to rely on the node "http" module, which is basic only. Would it be trivial to change it over to "request" module, which seems to support digest authorization? I may try to myself, but it will take me a while since I seem to be better at reading code than creating it.

Thanks--this is a great help. I don't like allowing my cheap cameras to speak directly to the outside world. This helps me isolate them.

hi, @wirephoto
You can use this branch https://github.com/legege/node-mjpeg-proxy, and do this to modify the properties of mjpegOptions:

router.get('/',(req, res, next)=> {
    const proxy=new MjpegProxy("http://login.mydomain.com");
    proxy.mjpegOptions.username = 'neslxzhen';
    proxy.mjpegOptions.password = 'my_password';
    proxy.proxyRequest(req,res);
});

although this issue is very old, I still put the answer here, hoping to help visitors.

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