• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neurobagel / federation-api / 9929807237
97%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2024 06:15PM UTC
Jobs 1
Files 18
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jul 2024 06:14PM UTC coverage: 97.043% (+0.03%) from 97.012%
9929807237

push

github

web-flow
Add authentication to `/query` route (#104)

* add implicit OAuth flow + token verification via Google for /query route

* add dependencies for Google auth library

* add note on using OIDC auth class

* read CLIENT_ID from env var and error if unset

* refactor token util into dedicated module

* use mocked token & verification in tests

* test behaviour for invalid tokens

* add TODO to check for 'Bearer'

* add env var to disable /query auth

* check CLIENT_ID on app startup

* disable auth for tests of node fetching

* test startup check for CLIENT_ID

* refactor tests; add test of query when auth is disabled

* rename auth env var

* improve clarity of comments and messages

Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>

* refactor mocked verify_token definition

---------

Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>

80 of 82 new or added lines in 7 files covered. (97.56%)

558 of 575 relevant lines covered (97.04%)

1.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9929807237.1 14 Jul 2024 06:15PM UTC 0
97.0
GitHub Action Run
Source Files on build 9929807237
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9929807237
  • 16f3f42f on github
  • Prev Build on main (#9682666455)
  • Next Build on main (#9960170676)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc