Hi everyone
When I try to publish an article and press on “Schedule for Publication” button this message appeared.
“The following requirements must be met before this can be published.
Unauthenticated ORCIDs for contributors detected.”
I click on the contributors part and click the check box in ORCID Authorization part for sending authorization link to the author…
“ORCID Authorization
Send e-mail to request ORCID authorization from contributor”
when author wants to verify the authorization link this error appears on orcid site:
"Error: The provided client id is invalid.
You have reached this page due to an error with the application’s integration. Please report this error to the organization that is requesting your ORCID iD.
invalid_client / Client not found:
"
can anyone help me?
Hi @monirehbastami ,
Can you please indicate which version of the ORCID plugin and which specfic version of OJS you are using (e.g. 3.3.0-13)?
Thank you,
Roger
PKP Team
thanks for your attention
v 3.4.0-1
And which version of the ORCID plugin (you can check this in the plugin gallery)?
-Roger
PKP Team
RCUB
September 26, 2023, 10:30am
6
I use OJS version 3.2.1.4 and orcidProfile-v1_1_2-28 (version suitable for OJS 3.2) and I have the same problem, I thought it was only a problem of older versions of OJS.
There is a discussion in Git Hub, I do not know if the discussions should be done in GitHub or in this forum.
opened 04:02PM - 05 Sep 23 UTC
**Describe the bug**
![image](https://github.com/pkp/orcidProfile/assets/877488… /3f4ffdf9-8eb1-4ec5-bc46-443d6e71e1dd)
**To Reproduce**
Steps to reproduce the behavior:
1. With orcidProfile-v1_1_2-28 version
2. After requesting a publication author the authorization for binding ORCID
3. And after the author received the email and click the "Register or connect your ORCID iD" link
4. And after he log in in ORCID and authorize
5. The "ORCID authorization link has already been used or is invalid" message is shown.
**Expected behavior**
A successfully binding is expected.
**Additional context**
The issue is related with the interaction with ORCID API, after the users authorized, a request is made to ORCID to grab a token using the URL:
```
https://pub.orcid.org/oauth/token
```
but Orcid is retrieving an `307 Temporary Redirect HTTP Code` to a different URL:
```
https://orcid.org/oauth/token
```
currently the orcidProfile plugin doesn't know how to deal with this redirect, so that error is shown.
A quick workaround for this is to change the `ORCID_API_URL_PUBLIC` setting to:
``` php
define('ORCID_API_URL_PUBLIC', 'https://orcid.org/');
```
In the discussion, a person found a temporal solution to the problem, maybe it helps you too. I am still trying if it works in my journals.
opened 04:02PM - 05 Sep 23 UTC
**Describe the bug**
![image](https://github.com/pkp/orcidProfile/assets/877488… /3f4ffdf9-8eb1-4ec5-bc46-443d6e71e1dd)
**To Reproduce**
Steps to reproduce the behavior:
1. With orcidProfile-v1_1_2-28 version
2. After requesting a publication author the authorization for binding ORCID
3. And after the author received the email and click the "Register or connect your ORCID iD" link
4. And after he log in in ORCID and authorize
5. The "ORCID authorization link has already been used or is invalid" message is shown.
**Expected behavior**
A successfully binding is expected.
**Additional context**
The issue is related with the interaction with ORCID API, after the users authorized, a request is made to ORCID to grab a token using the URL:
```
https://pub.orcid.org/oauth/token
```
but Orcid is retrieving an `307 Temporary Redirect HTTP Code` to a different URL:
```
https://orcid.org/oauth/token
```
currently the orcidProfile plugin doesn't know how to deal with this redirect, so that error is shown.
A quick workaround for this is to change the `ORCID_API_URL_PUBLIC` setting to:
``` php
define('ORCID_API_URL_PUBLIC', 'https://orcid.org/');
```
Isn’t the proper solution, but to have still working you can change this line:
use PKP\plugins\Hook;
use PKP\plugins\PluginRegistry;
use PKP\services\PKPSchemaService;
use PKP\submission\PKPSubmission;
use PKP\submission\reviewAssignment\ReviewAssignment;
use PKP\submission\reviewAssignment\ReviewAssignmentDAO;
use Sokil\IsoCodes\Database\Countries\Country;
define('ORCID_URL', 'https://orcid.org/');
define('ORCID_URL_SANDBOX', 'https://sandbox.orcid.org/');
define('ORCID_API_URL_PUBLIC', 'https://pub.orcid.org/');
define('ORCID_API_URL_PUBLIC_SANDBOX', 'https://pub.sandbox.orcid.org/');
define('ORCID_API_URL_MEMBER', 'https://api.orcid.org/');
define('ORCID_API_URL_MEMBER_SANDBOX', 'https://api.sandbox.orcid.org/');
define('ORCID_API_VERSION_URL', 'v3.0/');
define('ORCID_API_SCOPE_PUBLIC', '/authenticate');
define('ORCID_API_SCOPE_MEMBER', '/activities/update');
define('OAUTH_TOKEN_URL', 'oauth/token');
define('ORCID_EMPLOYMENTS_URL', 'employments');
define('ORCID_PROFILE_URL', 'person');
define('ORCID_EMAIL_URL', 'email');
from:
define('ORCID_API_URL_PUBLIC', 'https://pub.orcid.org/');
to:
define('ORCID_API_URL_PUBLIC', 'https://orcid.org/');
and it will work (you may need to save plugin configs at the interface after this change - save without change anything).
But I think this isn’t the proper fix. Perhaps a better one include allowing the plugin to handle specific ORCID redirects.
Hello @RCUB ,
Thank you for the additional information. @Dulip_Withanage : are you able to speak to this?
-Roger
PKP Team
Thanks for this report.
The reason for these errors was a recent renaming of the Orcid.org public API URL.
We have released an update for all major releases to reflect the changes in the Orcid API URL.
Please install the plugin for your OJS version from the OJS Plugin Gallery.
System: OJS/OPS 3.4
Plugin version: 1.3.4.5
URL: Release Change the public API URL and add redirection · pkp/orcidProfile · GitHub
System: OJS/OPS 3.3 (LTS rlease)
Plugin version: 1.1.3.10
URL: Release Change the public API URL and add redirection · pkp/orcidProfile · GitHub
System: OJS 3.2 (no active support, only very critical changes)
Plugin version: 1.1.2.29
URL: Release Change the public API URL and add redirection · pkp/orcidProfile · GitHub
2 Likes
rcgillis
Closed
October 23, 2023, 11:00am
9
This topic was automatically closed after 5 days. New replies are no longer allowed.