DataShades / ckanext-saml2

SAML2 Authentication extension for CKAN
5 stars 23 forks source link

Missing REMOTE_USER variable in Ckan #57

Closed vithalalapati closed 7 years ago

vithalalapati commented 7 years ago

I'm working on configuring ckanext-saml2 (https://github.com/DataShades/ckanext-saml2) extension with our Ckan 2.6.0 portal and httpd Server. One of the issues I'm encountering is the

[ckanext.saml2] Couldn't decode nameid, giving up

error. From the source code of the extension, it seems that it should get the REMOTE_USER variable from the 'environ' of Ckan. But the 'environ' doesn't return a REMOTE_USER variable when I tried to log it's content to the console. What am I missing here?

MrkGrgsn commented 7 years ago

That's normal (the log message is only INFO level; perhaps it should be DEBUG). pysaml2 only sets REMOTE_USER when the authentication response is received, after that identification is done via CKAN's usual cookies.

MrkGrgsn commented 7 years ago

Closing due to inactivity