-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate ORCIDs in codecheck.yml #11
Comments
https://stackoverflow.com/questions/3262569/validating-a-yaml-document-in-python for validating more generally. |
Re. general YAML valiation, the R |
|
> httr::GET("https://orcid.org/0000-0002-9341-7985")$status
[1] 200
> httr::GET("https://orcid.org/0000-not-an-orcid")$status
[1] 200
> httr::GET("https://orcid.org/0000-not-an-orcid")
Response [https://orcid.org/signin]
Date: 2020-09-02 08:31
Status: 200
Content-Type: text/html;charset=UTF-8
[...] Even the HTTP request requires login. |
See also https://github.com/MangoTheCat/goodpractice/issues/111 - maybe they come up with a solution. |
partial of codecheckers#10, partial of codecheckers#11
A regex - based validation happens with ropensci-review-tools/goodpractice#18 - for everything else we need API access, which I'd say is too much right now. |
sorry to just drop in here but I stumbled upon this - i'm the rorcid maintainer. seems like a use case that should be possible to check that an ORCID is valid without requiring auth. a head request seems to work without auth:
Also curious why can't you use your own personal auth for this? Would each user need to use their own auth or could you use your auth for everyone? |
Only existing ORCIDs should be used.
Also, we can point to
rorcid
package in the documentaiton, which might streamline lookup of ORCIDs for names. Note when I tried this in a container, the callback for the authentication did not work :-/.Also add
rorcid
toSuggests
in theDESCRIPTION
file.The text was updated successfully, but these errors were encountered: