Aperta-project / Aperta

A platform for managing the submission and review of research outputs
MIT License
11 stars 7 forks source link

Chores/aperta 12940 update orcid api #4087

Closed benjaminkreen closed 6 years ago

benjaminkreen commented 6 years ago

JIRA issue: https://jira.plos.org/jira/browse/APERTA-12940

What this PR does:

The first commit updates us to the 2.0 endpoint. The second commit refactors all our handrolled oauth to use a library we were already importing. I'm assigning @egh because he reviewed some some of this oauth stuff in the past.

Special instructions for Review or PO:

The way I tested this was to use the staging env vars, then on the staging env open the profile view and start the connecting process (with the pop up). After the popup happened I'd log out of stage and into aperta locally, complete the pop up and look into network calls for the code, and paste it into my local env. Orcid has seemed to fix the utf-8 issues so I've deleted the patch code.

Notes

Let me know how this looks, I can just do the easy fix as well if you don't think this refactor is worth rewriting the tests.


Code Review Tasks:

Author tasks (delete tasks that don't apply to your PR, this list should be finished before code review):

Reviewer tasks (these should be checked or somehow noted before passing on to PO):

benjaminkreen commented 6 years ago

@egh All fixed!

egh commented 6 years ago

@benjaminkreen Thank you! Looks great :+1: