ooni / backend

Everything related to OONI backend infrastructure: ooni/api, ooni/pipeline, ooni/sysadmin, collector, bouncers and test-helpers
BSD 3-Clause "New" or "Revised" License
48 stars 28 forks source link

Implement ooniauth API v2 #825

Closed hellais closed 3 months ago

hellais commented 3 months ago

This adds a new endpoint which implements a slightly nicer ooniauth API.

The main changes are the following:

So basically instead of 4 endpoints, we now have only 2:

hellais commented 3 months ago

I will soon deploy this to dev and update this to dev and provide a link to the docs for the API.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (0c9bdd9) to head (a47beec).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #825 +/- ## =========================================== + Coverage 99.75% 100.00% +0.24% =========================================== Files 19 21 +2 Lines 1243 1439 +196 Branches 103 116 +13 =========================================== + Hits 1240 1439 +199 + Misses 2 0 -2 + Partials 1 0 -1 ``` | [Flag](https://app.codecov.io/gh/ooni/backend/pull/825/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni) | Coverage Δ | | |---|---|---| | [ooniauth](https://app.codecov.io/gh/ooni/backend/pull/825/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni) | `100.00% <100.00%> (+0.75%)` | :arrow_up: | | [oonirun](https://app.codecov.io/gh/ooni/backend/pull/825/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni) | `100.00% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ooni#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.