SSO authentication #240
Answered
by
rptmat57
pengjiewang
asked this question in
Q&A
-
It seems that most institutions have moved to SAML SSO. Does NEMO support this? Any way to integrate SSO to NEMO? |
Beta Was this translation helpful? Give feedback.
Answered by
rptmat57
Jun 17, 2024
Replies: 1 comment 2 replies
-
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
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pengjiewang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:"NEMO.middleware.HTTPHeaderAuthenticationMiddleware"
to middlewaresAUTHENTICATION_BACKENDS = ["NEMO.views.authentication.RemoteUserAuthenticationBackend"]
.AUTHENTICATION_HEADER = "AUTHENTICATION"
(to fetch the username from theHTTP_AUTHENTICATION
header)