Skip to content

Add proper authentication#123

Draft
edan-bainglass wants to merge 43 commits into
aiidateam:masterfrom
edan-bainglass:real-auth
Draft

Add proper authentication#123
edan-bainglass wants to merge 43 commits into
aiidateam:masterfrom
edan-bainglass:real-auth

Conversation

@edan-bainglass

@edan-bainglass edan-bainglass commented May 16, 2026

Copy link
Copy Markdown
Member

Based on #122

Current implementation is mostly by an agent, as I am unfamiliar with FastAPI authentication.
Need to check this one carefully against standards!

Update

The implementation doesn't quite work.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.24930% with 116 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.18%. Comparing base (e6dcaa0) to head (6d63800).
⚠️ Report is 21 commits behind head on master.

Files with missing lines Patch % Lines
aiida_restapi/jsonapi/hooks.py 76.04% 23 Missing ⚠️
aiida_restapi/jsonapi/models/base.py 86.80% 19 Missing ⚠️
aiida_restapi/routers/auth.py 70.96% 18 Missing ⚠️
aiida_restapi/routers/nodes.py 88.80% 14 Missing ⚠️
aiida_restapi/services/entity.py 84.28% 11 Missing ⚠️
aiida_restapi/models/node.py 91.01% 8 Missing ⚠️
aiida_restapi/jsonapi/utils.py 70.00% 6 Missing ⚠️
aiida_restapi/routers/tests/tests.py 75.00% 5 Missing ⚠️
aiida_restapi/common/query.py 88.88% 3 Missing ⚠️
aiida_restapi/services/node.py 90.62% 3 Missing ⚠️
... and 3 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
- Coverage   93.39%   88.18%   -5.22%     
==========================================
  Files          28       48      +20     
  Lines         999     2039    +1040     
==========================================
+ Hits          933     1798     +865     
- Misses         66      241     +175     
Flag Coverage Δ
pytests 88.18% <89.24%> (-5.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@edan-bainglass edan-bainglass mentioned this pull request May 16, 2026
@edan-bainglass edan-bainglass marked this pull request as draft May 16, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants