I'm trying to develop an application for Dspace and I was testing out some 
requests in Postman.

I check my authorization token was ok using the /authn/status endpoint with 
the curl request:
curl --location --request GET 
'https://api7.dspace.org/server/api/authn/status' \
--header 'Authorization: Bearer {token}'

This returned:
{
"id": null,
"okay": true,
"authenticated": true,
"type": "status",
"_links": {
"eperson": {
"href": 
"https://api7.dspace.org/server/api/eperson/epersons/9bff97a3-1f6f-4690-a554-d2d099851062";
},
"self": {
"href": "https://api7.dspace.org/server/api/authn/status";
}
}
}

But when I went to use the /core/items endpoint with the curl request:
curl --location --request GET 
'https://api7.dspace.org/server/api/core/items' \
--header 'Authorization: Bearer {token}'

This returned:
{
"timestamp": "2021-12-18T23:48:15.468+00:00",
"status": 403,
"error": "Forbidden",
"message": "Access is denied",
"path": "/server/api/core/items"
}

Did I do something wrong or is the account I used, 
[email protected], just not have permissions for this endpoint? If 
the latter is the case, is there a user account that I can use this 
endpoint for on the api7.dspace.org demo site.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/af450115-3cb4-4d9f-8813-d220fbb26ecen%40googlegroups.com.

Reply via email to