biocompute-objects / biocompute-objects/portal_userdb

BCO API requires authentication

Open
#522 10 comments 0 reactions 1 assignee Claimed by @HadleyKing View on GitHub
BiomarkerKB
Dominant language
JavaScript
Stars
1
Forks
1
Avg merge
10m
Merged PRs (30d)
1

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.