Open pli888 opened 3 years ago
As an author I want to login using my ORCID ID So that I can have an authenticated ORCID ID in GigaDB
As an author I want to login using my ORCID ID So that I can login more easily, have ORCID broker and carry over my details and metadata, and have an authenticated ORCID ID in GigaDB
We have had basic non-profit membership of ORCID for over a year now which allows us to use the production API server. One use of the ORCID API server is to retrieve the email address for a user that has logged into GigaDB with their ORCID credentials. This email address should be stored in the user's GigaDB account.
Before we are allowed to use the production ORCID API, we need to demonstrate that we can use the ORCID API that is deployed on their sandbox server. Looking at the existing ORCID code in the
develop
branch, I have identified the following steps to retrieve a user's email address using the ORCID API and then store it in the user's GigaDB account:affiliate-login.feature
to test for user email retrieval from ORCID sandbox servercomponents/OrcidStrategy
class, update functionuserinfo($uid)
so it works with sandbox ORCID API to retrieve email address from test ORCID user account. If it cannot connect to ORCID API then check for this and create a message in the log. Test theuserinfo($uid)
function with a new functional testprocessAffilateUser
function inUser
class so it can calluserinfo($uid)
function inOrcidStrategy
class to get the user email address and add it to user account@rija can you check the above steps are suitable please?