Hi All,
I am setting up shibboleth authentication and got below error:
eAPIRequestLoggingFilter @ Before request [GET /server/api/authz/authorizations/search/object] originated from /home
2022-08-19 12:47:16,184 INFO aebd1170-b43b-47f9-b3e4-0990b4b7d105 6cddd761-cb75-418f-8e89-c9a7a99f426e org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [POST /server/api/statistics/viewevents] originated from /home
2022-08-19 12:47:16,193 INFO aebd1170-b43b-47f9-b3e4-0990b4b7d105 6cddd761-cb75-418f-8e89-c9a7a99f426e org.dspace.usage.LoggerUsageEventListener @ anonymous::view_site:site_id=1d6ea8fd-1ba8-43a8-a12e-ddb97413cfba
2022-08-19 12:47:19,282 ERROR unknown unknown org.dspace.authenticate.ShibAuthentication @ Shibboleth authentication was not able to find a NetId, Email, or Tomcat Remote user for which to indentify a user from.
2022-08-19 12:47:19,282 ERROR unknown unknown org.dspace.authenticate.ShibAuthentication @ Unable to register new eperson because we are unable to find an email address along with first and last name for the user.
NetId Header: 'uid'='null' (Optional)
Email Header: 'mail'='null'
First Name Header: 'givenName'='null'
Last Name Header: 'surname'='null'
2022-08-19 12:47:19,282 INFO unknown unknown org.dspace.app.rest.security.EPersonRestAuthenticationProvider @ anonymous::failed_login:email=null, result=4
2022-08-19 12:47:19,283 ERROR unknown unknown org.dspace.app.rest.security.StatelessLoginFilter @ Authentication failed (status:401)
org.springframework.security.authentication.BadCredentialsException: Login failed
at org.dspace.app.rest.security.EPersonRestAuthenticationProvider.authenticateNewLogin(EPersonRestAuthenticationProvider.java:150) ~[classes/:7.3]
2. Shibboleth.sso/Session shows 5 attributes returned
3. Apache configs:
<Location /secure>
ShibUseHeaders on
SetHandler shib
AuthType shibboleth
ShibRequestSetting requireSession 1
require shib-session
</Location>
<Location />
AuthType shibboleth
ShibRequestSetting requireSession false
Require shibboleth
</Location>
<Location /server/api/authn/shibboleth>
AuthType shibboleth
ShibRequestSetting requireSession 1
ShibUseHeaders On
Require shibboleth
</Location>
<Location /server/api/authn/login>
AuthType shibboleth
ShibRequestSetting requireSession false
ShibUseHeaders On
</Location>
<Location /Shibboleth.sso>
SetHandler shib
</Location>
I looked at the documentation below and I am pretty sure I did the relevant steps.
Could someone had the similar issues? Any suggestion is welcomed.
Regards,
Bryan