-
Hi, I've got it all working behind Apache. On first load I get bounced over to Google to authenticate and then get redirected back, BUT Netbox is not seeing/honouring the REMOTE_USER. I get the not-yet-logged-in page when I am redirected back, and if I click the Login button I get the standard log in form. I've put a test.php file in /static containing just phpinfo() and so I can see that REMOTE_USER and the various OIDC variables are being correctly set. I've tried setting the Here's my Netbox config:
And here's the relevant part of my Apache config:
Can anyone point me to where I might be going wrong? My only hunch is the Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If the header is Here's my working config. Netbox (v2.11):
Apache2 (under Ubuntu 18.04):
The hd claim is only if you have a Google Apps managed domain. You don't need to restrict to a managed domain, but if you don't, you're allowing access to anyone with a gmail account. In that case, you probably want to restrict access to specific Google accounts, and/or disable If you don't want unauthorized users even to reach the Netbox front page, you should be able to use
where groups.txt contains E-mail addresses, if you are using
Also, if you don't like the idea of opening up API token authentication to the whole world, then you can allow API clients by source IP address instead:
But note that if |
Beta Was this translation helpful? Give feedback.
If the header is
Remote-User:
then you needREMOTE_AUTH_HEADER = 'HTTP_REMOTE_USER'
(note theHTTP_
prefix).OIDCRedirectURI
can be any path that you like that won't interfere with the application.Here's my working config. Netbox (v2.11):
Apache2 (under Ubuntu 18.04):