bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
120 stars 18 forks source link

HTTP header auth #110

Closed onoraba closed 2 years ago

onoraba commented 2 years ago

Hi

I'm using nginx for reverse proxing with ssl cert auth:

map $ssl_client_s_dn $app_remote_user { default ""; ~^CN=(?<user>[^,\s]+) $user; }; ssl_client_certificate /opt/certs/root.crt; ssl_verify_client on; ssl_verify_depth 1;

and to authenticate nginx with app: proxy_set_header REMOTE_USER $app_remote_user;

How can I configure UI3 in such a way so it will authenticate users by http header ?

https://github.com/bp2008/ui3/wiki/Using-UI3-with-a-reverse-proxy-server

bp2008 commented 2 years ago

I don't understand your configuration. You may need to rethink the authentication approach. UI3 can't add an http header to all requests that go to the web server.