Skip to content

SSO authentication #240

Answered by rptmat57
pengjiewang asked this question in Q&A
Jun 16, 2024 · 1 comments · 2 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 = "AUTHENTICATION" (to fetch the username from the HTTP_AUTHENTICATION header)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pengjiewang
Comment options

@rptmat57
Comment options

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