hypothesis / hypothesis/product-backlog

Use API token to authenticate requests to badge endpoint

Open
#360 1 comment 0 reactions 0 assignees View on GitHub
OAuth
Dominant language
No language data
Stars
122
Forks
7
PR merge metrics
No merged PRs in 30d

Description

The browser extension currently relies on cookie authentication to authenticate requests to the badge endpoint. When the client is using OAuth, it should instead use the current OAuth access token to authenticate requests to the badge endpoint. One complication here is that the access token may have expired and the client may not be running to refresh it.

- [ ] Provide an API-token authenticated way to request the annotation counts for the current page
- [ ] Use API tokens to authenticate requests from the browser extension to this endpoint
- [ ] Make sure that API tokens are refreshed if necessary, even if the client is not currently running

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.