-
Notifications
You must be signed in to change notification settings - Fork 42
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
Using OAUTH2 to authenticate with ORCID #243
Comments
If anyone has an idea on how to do this or help do it, that would be great ! |
Hi :) I can try helping out on this one. Do we have this |
hi @leportella We come to face the issue of having to fetch protected data from a web server (Erddap Ifremer) that is using ORCID to login users. we thought that if argopy could be authenticating users with orcid as well, then we could fetch these protected data. but in any case, I think it would be useful over the long run for argopy to be able to authenticate orcid users, because the orcid ID is more and more used by the Argo Data Management Team to populate some parameters of the Argo dataset (especially to document quality control procedure). So this would be helpful at some point |
I talked briefly with @ocefpaf and I think that this problem is 2 different problems from what I can tell:
Ideally, we need to understand how to do 1 before doing 2. Does that make sense? |
this is on the verge of my knowledge ! |
Following discussions at https://github.com/BobSimons/erddap/issues/92 ... I can share here a peace of code I had working this morning that allows to request the erddap and get access to protected data, considering a initial procedure we will need to do differently:
import aiohttp
import pandas as pd
url = 'https://erddap-val.ifremer.fr/erddap/info/index.json'
cookies = {'JSESSIONID': <COOKIEVALUE>}
async with aiohttp.ClientSession(cookies=cookies) as session:
async with session.get(url) as resp:
data = await resp.json()
df = pd.DataFrame(data['table']['rows'], columns=data['table']['columnNames'])
df = df[['Accessible', 'Dataset ID', 'Title']]
df
So I guess, we are now left with the difficulty of getting this cooky automatically |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
Closing this issue because such authentication is no longer required |
ORCID is used by the Argo community to populate netcdf files with operators information.
Ifremer is implementing access to the Argo-CTD reference database for DMQC by erddap with an ORCID authentification.
We therefore need to be able to authenticate users in argopy.
The expected API could look like this:
or simply:
After authentification, argopy will be able to send erddap requests with the user orcid id.
but I'm not sure this will be enough on the server side to determine user access right to the proected dataset.
The text was updated successfully, but these errors were encountered: