SSO graylog nginx

hello :slight_smile:
I have a problem when t try to have a SSO between nginx 1.10.3 and graylog 2.5.0
this is my configuration for nginx:

location / {
auth_basic “Restricted Access”;
auth_basic_user_file “/etc/nginx/.htpasswd”;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
}

    location /graylog {
            auth_basic "Restricted Access";

            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header Remote-User $remote_user;
            #proxy_set_header X-Forwarded-User $remote_user;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Graylog-Server-URL http://1.0.0.10/graylog/api;
            proxy_set_header X-Requested-By $remote_addr;

            proxy_pass       http://1.15.15.15:9001/graylog;
            
    }

and my configuration for grafana
rest_listen_uri = http://1.15.15.15:9001/graylog/api
web_listen_uri = http://1.15.15.15:9001/graylog

the problem is, when i log on with internet explorer the SSO work perfectly, but when i try to log on with mozilla firefox, I am authenticated with the user “undefined” and i don’t know why ??

please help me…

thank very much for your help :slight_smile:

add a / to your proxy_pass

the modification doesn’t work. i’m still stuck :disappointed_relieved::disappointed_relieved:
please somebody can give me a tips :disappointed_relieved::disappointed_relieved:

thank you,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.