research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
23 stars 15 forks source link

ORCID: The provided redirect URI does not match the redirect URIs registered #1089

Closed cmeessen closed 6 months ago

cmeessen commented 7 months ago

While testing the ORCID integration on our staging server, I received the following error trying to link my RSD account to the ORCID sandbox:

Error: The provided redirect URI https://\<URL>/auth/couple/orcid does not match the redirect URIs registered by \<Service>.

When I registered for the ORCID sandbox, I used the paths given in .env.example, and stated the content of ORCID_REDIRECT as the desired redirect URL.

The url that is given in the error message is the one provided in ORCID_REDIRECT_COUPLE. The error message suggests that this is the URL we need to provide when registering our RSD with ORCID. Is that correct? If so I would suggest to document the values required for registration in the technical documentation.

ewan-escience commented 7 months ago

Yes, you need to add this link in the ORCID dashboard to the allowed redirect URLs.