microbiomedata / nmdc-runtime

Runtime system for NMDC data management and orchestration
https://microbiomedata.github.io/nmdc-runtime/
Other
4 stars 3 forks source link

Update `NmdcPortalApiClient` with new authentication scheme #572

Closed pkalita-lbl closed 6 days ago

pkalita-lbl commented 6 days ago

Description

The Portal API has replaced session cookie-based authentication with Bearer token authentication. These changes update NmdcPortalApiClient to reflect that.

In testing I also found that the SubmissionPortalTranslator has drifted away from the Portal a bit. In particular, samp_name is now the unique key slot on Biosample instances instead of source_mat_id. These changes also correct that.

Fixes #571

Type of change

How Has This Been Tested?

Configuration Details: none

Checklist: