CDLUC3 / dmphub

Simple metadata repository for networked DMPs
MIT License
3 stars 1 forks source link

Link back to the PDF copy of the DMP not working #58

Closed briri closed 2 years ago

briri commented 3 years ago

Clicking the link to the original DMP results in:

{
  "api_version": 2,
  "source": "GET /api/v2/plans/68380.pdf",
  "time": "2021-08-12T08:23:35-07:00",
  "code": 401,
  "message": "Unauthorized",
  "total_items": 0,
  "items": [

  ],
  "errors": [
    "token is invalid, expired or has been revoked"
  ]
}

See the following for an example: https://dmphub.cdlib.org/dmps/doi:10.48321/D1D88G

This is due to the new security restrictions added to API v2. We need to update so that we call the API using the DMPTool's API (passing grant_type=client_credentials&client_id=123&client_secret=ABC&scope=read_dmps to the token request)

briri commented 3 years ago

temporary fix put in place. Leaving this open to address properly in Sept.

mariapraetzellis commented 2 years ago

The current process sends you to the DMPTool PDF instead of going through the API. This link only displays if it is publicly visible.