SwissOpenEM / Depositor

An interface to direct files and metadata from SciCat to OneDep
0 stars 0 forks source link

Authorization in One Dep #5

Open sofyalaski opened 1 month ago

sofyalaski commented 1 month ago

There are three ways to authorize in OneDep

It makes most sense to use a simple way and to create a new deposition, put the email from the account connected to SciCat. However, there is no way to avoid a manual entry of the password, as it will be sent to the user, and no way to scrape it. Also, when accessing this deposition at a later timepoint, there is no way to keep that password safe, as there are no private fields in the dataset schema and it can be specified that a certain file has different permission settings than the rest.

sofyalaski commented 1 month ago

if deposition is not new, keep the ID of deposition but prompt for a password every time

sbliven commented 3 weeks ago

Let's ask EBI about this. Maybe they can provide an API to generate a new password from scicat, or else a way to start a deposition without obtaining the password directly.

sofyalaski commented 3 weeks ago

Ask EMDB teams, how can we obtain the token for OneDep

sbliven commented 3 weeks ago

Worse case, we can redirect users to onedep and ask them to generate the token and paste it in the uploader. Better would be an endpoint for generating the token given a valid ORCID login