Skip to content

REMOTE_AUTH not getting the username #6705

Answered by candlerb
dfluff asked this question in Q&A
Discussion options

You must be logged in to vote

If the header is Remote-User: then you need REMOTE_AUTH_HEADER = 'HTTP_REMOTE_USER' (note the HTTP_ prefix). OIDCRedirectURI can be any path that you like that won't interfere with the application.

Here's my working config. Netbox (v2.11):

REMOTE_AUTH_ENABLED = True
REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend'
REMOTE_AUTH_HEADER = 'HTTP_REMOTE_USER'
REMOTE_AUTH_AUTO_CREATE_USER = True
REMOTE_AUTH_DEFAULT_GROUPS = []
REMOTE_AUTH_DEFAULT_PERMISSIONS = {}

Apache2 (under Ubuntu 18.04):

        # Fix problem with Firefox: # https://github.com/zmartzone/mod_auth_openidc/issues/404
        ErrorDocument 401 " "

        OIDCProviderMetadataURL https://accounts.google.com/.wel…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dsmithbbc
Comment options

Answer selected by ryanmerolle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants