Myth: Site Admin lost periodically

23 views
Skip to first unread message

Tianyi Gu

unread,
Nov 1, 2021, 11:02:41 AM11/1/21
to DSpace Technical Support
Hello,

Happy Monday everyone and hope you have a great ahead!

Last Friday, I could not login DSpace with my site admin.
However, I have no problem to login this morning with the same password and admin user name.

I had another DSpace instance. The same issue happened on that instance as well. 

Anyone could give any ideas on that?

Thank you,
Tianyi

Tim Donohue

unread,
Nov 1, 2021, 11:49:44 AM11/1/21
to Tianyi Gu, DSpace Technical Support
While this is a guess, it's possible​ for your CSRF Token to get "out of sync" temporarily, causing a temporary authentication failure.  The CSRF token is a security token which validates your connection to the REST API.  If your token stored in your browser is out of sync with the one your REST API expects, then the REST API will return an authentication failure.  However, as part of that authentication failure, your REST API will also return a new CSRF token to re-sync the tokens.  So, if they ever get unsynced, they will resync again immediately.  But, this can result in behavior where a login appears to fail, and then succeeds on the second try.

The CSRF token would rarely get out of sync for a normal DSpace user.  It's most likely to happen if an advanced user is logging in first through the UI, and then separately through the REST API (Hal Browser) in the same browser. 

That's my best guess on what you may have been seeing. 

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Tianyi Gu <gutia...@gmail.com>
Sent: Monday, November 1, 2021 10:02 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Myth: Site Admin lost periodically
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/42e038c9-1d95-498c-8606-5b378deb27fen%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages