DSpace 7.5 OIDC - error 401

70 views
Skip to first unread message

Csaba Szilvási

unread,
Jun 1, 2023, 9:03:08 AM6/1/23
to DSpace Technical Support
Hi,

We are trying to use OIDC authentication with DSpace 7.5
All the required parameters are set according to the tutorial.

Authentication succeeds (we are using MS Azure), but after the
redirect on the DSpace backend there is error 401.

After analyzing the logs we suspect the source of the problem is that
CSRF tokens are not handled properly, but it is unclear how and why they are lost.

2023-05-29 21:56:41,396 WARN  unknown unknown org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ Access is denied. Invalid CSRF token. (status:403 exception: Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-XSRF-TOKEN'. at: org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:127))
2023-05-29 21:57:02,234 ERROR unknown unknown org.dspace.authenticate.OidcAuthenticationBean @ An error occurs retriving the OIDC user info (...)

Is it possible to disable CSRF completely just for testing if everything else works OK?

Thank you in advance,
Csaba




Reply all
Reply to author
Forward
0 new messages