Welcome! Log In Create A New Profile

Advanced

single sign on behind nginx

Posted by petexy 
single sign on behind nginx
January 19, 2022 08:00AM
hi I have been trying to implement an single sign-on for graylog so that it automatically logs on using a trusted header from anothersite .
I want to link from another of our sites that uses an openid system.(graylog wants lots of $ for the enterprise version that has this option) I would then trust connections (links) from this site to graylog and map a read only user.
I can map a header using the $http_referer but this wont work as the $http_referer is only set for the first connection after that it changes to graylogs url.

map $http_referer $grayloguser {
default "bla";
"~<referer site>" megavision_sso;
}

then in the location block
add_header Remote-User $grayloguser;

which works but then the referer for all the other pages becomes graylogs url which is logical.
Anyone got a work around in a similar situation?
Peter
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready