Shibboleth login often fails on redirect back to DSpace #2669
Labels
authentication: Shibboleth
related to integration with Shibboleth
bug
high priority
performance / caching
Related to performance, caching or embedded objects
Milestone
Describe the bug
When you try to log in using Shibboleth, you'll often notice you're not logged in when you get redirected to DSpace. When this happens you'll see console errors with messages like "undefined doesn't contain the link …", that indicate something is going wrong with calls to retrieve the links on
/api
Note that this is a timing issue so it doesn't happen every time, but well over 50% of the time in my tests
To Reproduce
Expected behavior
You should be logged in, and there should be no console errors
Related work
This has the same cause as #1027. #1056 fixed it for Dataservices, but not for the HALEndpointService. That wasn't a problem because HAL endpoint requests were never set to stale, until #2510 changed that in 7.6.1. It's also the reason why I couldn't get invalidateRootCache to work when listenForRouteChanges was first called: it caused HALEndpointService to return stale requests, but I didn't realize that's what was happening at the time
The text was updated successfully, but these errors were encountered: