gabihodoroaga / nginx-ntlm-module

A nginx module to allow proxying requests with NTLM Authentication.
MIT License
91 stars 22 forks source link

Working, but using Auth Login Pop-Up - Can I not forward credentials? #11

Open FreeSoftwareServers opened 2 years ago

FreeSoftwareServers commented 2 years ago

Hey there,

Thanks for the great software! I'm hitting one limitation though. It seems that when I make the initial request, it asks for credentials via pop-up. After this it seems to save them for a time, but I'd prefer it just uses the Windows Auth credentials. Is this possible or is this normal behavior?

Here is my nginx config:

server {
    listen       80;
    listen  [::]:80;
    server_name  domain.com;

        location / {
            ##CORS
            proxy_hide_header Access-Control-Allow-Origin;
            add_header Access-Control-Allow-Origin http://domain.com;
            ##CORS
            ##API
            proxy_pass_header Access-Control-Allow-Methods;
            proxy_hide_header Access-Control-Allow-Headers;
            add_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type';
            add_header Access-Control-Allow-Credentials true;
            ##API
            ##NTLM
            proxy_set_header Cookie $http_cookie;
            add_header 'Access-Control-Expose-Headers' 'Authorization' always;
            proxy_http_version 1.1;
            proxy_set_header Connection "";
            #NTLM
            proxy_pass http://http_backend;
        }
}