ORCID Authentication problem - OJS 3.1.2.1

Hello Everyone …

I am working with an OJS 3.1.2.1 multijournal installation …
I have activated ORCID API Public access setting our public url as the redirect_URI (the same url that is configured as base_url in config.inc.php), installed last version of the orcid OJS plugin (v1.1.1.4) and configured it site-wide via the config.inc.php file with the following options:

[orcid]

api_url = https://pub.orcid.org/
client_id = APP-VATGFR9URCHHL325
client_secret = (real cliet_secret here)

The problen is that … when an user tries to link his orcid profile to OJS (via the email that they receive from OJS or clicking the “connect to ORCID” button under the Public tab of their profile) they are requested to login with their ORCID credentials, and then click the Authorize button.

When they click the button, they land on a error page saying that revistas.uncu.edu.ar (our portal public url) cannot process their request due to an HTTP ERROR 500 …

The request url is the following:

https://orcid.org/oauth/authorize?client_id=APP-VATGFR9URCHHL325&response_type=code&scope=%2Fauthenticate&redirect_uri=http%3A%2F%2Frevistas.uncu.edu.ar%2Fojs3%2Findex.php%2FRFCA%2Forcidapi%2ForcidAuthorize%3FtargetOp%3Dprofile

the error page url being:

http://revistas.uncu.edu.ar/ojs3/index.php/RFCA/orcidapi/orcidAuthorize/targetOp=profile?code=uJvG03

There is no error related to this at errors.log and neither at orcid.log… which is kinda weird for a 500 error… So I don’t have much to work with

I’d really appreciate any pointers as to how to troubleshoot this problem.

Thanks in advance!

@hilongo

we had sometimes a similar issue, when the clientid or client secret was not set correctly. Just wanted to rule out, that it is not the case, cause the plugin currently does not catch, if there is a API error.

1 Like

I think I have a similar problem. An author receives the email request to follow the link and authenticate the ORCID ID they have entered, but when they select the link, they receive the following message: Screen Shot 2020-10-08 at 10.31.40

Kully

@Dulip_Withanage … Thanks for the response … I have checked that both the id and the secret were correct …

I tried setting them globally (inside config.inc.php) and locally for each journal …
I still have not found any solution.

Hello @kulren

I’m not sure if it a similar problem… Maybe you will have more luck posting a new thread about this one

Best regards