Skip to content

BCO API requires authentication #522

@mariacuria

Description

@mariacuria

Describe the bug
It seems that the BCO API requires authentication. This is new behavior - I used to be able to validate BCOs from the command line without being authenticated. When trying to access a BCO through the API (I also have a test script), I get the error message:

Testing URL: https://biocomputeobject.org/BMK_000012/0.1
Status Code: 403
Full response:
{
  "message": "User, AnonymousUser, does not have draft permissions for BMK_000012."
}

To Reproduce
Steps to reproduce the behavior:

  1. Open the Terminal (or any command-line interface)
  2. Run the command for an existing BCO: curl https://biocomputeobject.org/BMK_000012/0.1
  3. See error {"message":"User, AnonymousUser, does not have draft permissions for BMK_000012."}

Expected behavior
Being able to access BCO through the API without having to authenticate. Alternatively, please provide steps on how to obtain the authentication token for command-line use.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions