7.6.2: Cannot authenticate via Orcid

19 views
Skip to first unread message

Carolyn Sullivan

unread,
Oct 14, 2025, 4:57:46 PMOct 14
to DSpace Technical Support
Hello,

After getting an Orcid Sandbox API, I made the following changes to local.cfg.dev to enable the Orcid integration in my development environment for DSpace:

localcfgdev_101425.png

I also enabled Researcher Profiles, modifying the researcher-profile.cfg file:
researcher-profilecfg_101425.png
and the authority.cfg file:
authoritycfg_101425.png

Unfortunately, I am running into the following issues with Orcid:
(1) Cannot login with Orcid; receive a 401 Unauthorized error: 
401unauthorized_101425.png
(2) Not allowed to make submissions or edit existing submissions:
Noeditingerror_101425.png

(3) Cannot connect local Researcher Profile with Orcid:
ProfileConnection_101425.png

I looked in my /var/dspace/log/dspace.log file, but there was a lot of information there and I'm unable to discern what might be relevant.  There were a lot of errors like

2025-10-14 14:13:03,891 INFO  5f625177-ebb8-46c3-816b-300726f1c590 3444fdda-c33f-4ed6-99d7-286ed32fb5c8 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/authz/authorizations/search/object] originated from /error?status=401&code=orcid.generic-error

when I tried to sign in with the account I made in the Orcid sandbox.  When trying to sync my profile with the orcid sandbox, I got errors such as:

2025-10-14 15:35:26,452 INFO  5f625177-ebb8-46c3-816b-300726f1c590 2276c501-19da-414e-9503-7e09d3257cd2 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api] originated from /entities/person/[some unique identifier]/orcid?code=[A sequence of letters that might be specific to my repo and I probably shouldn't share publicly?]

If anyone has any ideas what might be causing this strange behaviour, I'd very much appreciate your insights!

Thanks,

Carolyn.








Carolyn Sullivan

unread,
Oct 16, 2025, 4:49:24 PMOct 16
to DSpace Technical Support
Update: We tried changing my email address in the development environment to the mailinator address I'd used to sign up for an account in the Orcid sandbox.  Following this, we got a new error:

WhitelabelPageErrorDefault_101625.png

This seems to indicate that our DSpace instance is initiating the Orcid authentication process, but runs into an error with the Java code somewhere.  Here's the initial error in the dspace.log file:

Dspacelogerror.png

Any ideas what might be wrong?

Thanks,
Carolyn.

Carolyn Sullivan

unread,
Oct 21, 2025, 1:54:09 PMOct 21
to DSpace Technical Support
Hello all,

I found my mistake.  It's somewhat embarrassing.  I've laid it out here for the sake of any other poor SysAdmin who will make the same gaffe five years from now T.T  
The only problem was that I had repeated the line event.dispatcher.default.consumers = blahblah, blahblah, blahblah twice in the code.  How awful.

Have a lovely week all, 
Carolyn.
Reply all
Reply to author
Forward
0 new messages