Skip to content

SSO authentication #240

Answered by rptmat57
pengjiewang asked this question in Q&A
Jun 16, 2024 · 2 comments · 18 replies
Discussion options

You must be logged in to vote

NEMO itself does not deal with authentication.

The easiest way to use SSO with NEMO is by having SAML authentication done in Apache or Nginx and have them set a "remote user" header with the username of the authenticated user.

in NEMO's settings.py, you can then:

  • add "NEMO.middleware.HTTPHeaderAuthenticationMiddleware" to middlewares
  • set AUTHENTICATION_BACKENDS = ["NEMO.views.authentication.RemoteUserAuthenticationBackend"].
  • set AUTHENTICATION_HEADER = "REMOTE_USER" (to fetch the username from the HTTP_REMOTE_USER header)

Replies: 2 comments 18 replies

Comment options

You must be logged in to vote
6 replies
@rptmat57
Comment options

@Hydrozyk
Comment options

@rptmat57
Comment options

@Hydrozyk
Comment options

@Hydrozyk
Comment options

Answer selected by pengjiewang
Comment options

You must be logged in to vote
12 replies
@Hydrozyk
Comment options

@rptmat57
Comment options

@Hydrozyk
Comment options

@Hydrozyk
Comment options

@rptmat57
Comment options

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