You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since EPrints 3.4.5 the secure_eprints_session cookie has set its SameSite attribute to Strict. This creates a problem when ORCID redirects back to the EPrints repository (/cgi/orcid/authenticate) after authenticating the user on ORCID. Because of SameSite=Strict, the cookie is not immediately accessible so /cgi/users/authenticate. cannot lookup the current user as required. So you end up with the page reporting an error.
As similar approach to the problem with Shibboleth login (and redirect loops) could be used to fix it. Below is a code block that I added the script sets $current_user and only does anything if this is undefined:
What are people's thoughts on this. It is not ideal and I suspect there may be a slightly less ugly way to solve this. So I thought it worth submitting this as an issue first rather than just a pull request.
The text was updated successfully, but these errors were encountered:
Since EPrints 3.4.5 the
secure_eprints_session
cookie has set itsSameSite
attribute toStrict
. This creates a problem when ORCID redirects back to the EPrints repository (/cgi/orcid/authenticate
) after authenticating the user on ORCID. Because ofSameSite=Strict
, the cookie is not immediately accessible so/cgi/users/authenticate.
cannot lookup the current user as required. So you end up with the page reporting an error.As similar approach to the problem with Shibboleth login (and redirect loops) could be used to fix it. Below is a code block that I added the script sets
$current_user
and only does anything if this is undefined:What are people's thoughts on this. It is not ideal and I suspect there may be a slightly less ugly way to solve this. So I thought it worth submitting this as an issue first rather than just a pull request.
The text was updated successfully, but these errors were encountered: