tailcall icon indicating copy to clipboard operation
tailcall copied to clipboard

feat(auth): Auth with jwt support

Open meskill opened this issue 1 year ago • 1 comments

Summary:
Add support for jwt auth and protecting fields and types from public access with that

Issue Reference(s):
Fixes #418

Build & Testing:

  • [ ] I ran cargo test successfully.
  • [ ] I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

  • [ ] I have added relevant unit & integration tests.
  • [ ] I have updated the documentation website accordingly.
  • [ ] I have performed a self-review of my own code.

meskill avatar Dec 27 '23 23:12 meskill

Codecov Report

Attention: 33 lines in your changes are missing coverage. Please review.

Comparison is base (9b01f93) 88.74% compared to head (6ca25bc) 89.07%.

Files Patch % Lines
src/auth/jwt/jwt_verify.rs 94.47% 10 Missing :warning:
src/auth/context.rs 90.00% 6 Missing :warning:
src/auth/jwt/jwks_remote.rs 85.71% 6 Missing :warning:
src/auth/basic.rs 92.50% 3 Missing :warning:
src/blueprint/from_config/init_context.rs 86.95% 3 Missing :warning:
src/valid/valid.rs 0.00% 3 Missing :warning:
src/auth/jwt/jwks.rs 98.07% 1 Missing :warning:
src/blueprint/from_config/auth.rs 98.36% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #807      +/-   ##
==========================================
+ Coverage   88.74%   89.07%   +0.32%     
==========================================
  Files          93      106      +13     
  Lines        9573    10161     +588     
==========================================
+ Hits         8496     9051     +555     
- Misses       1077     1110      +33     

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

codecov[bot] avatar Jan 01 '24 22:01 codecov[bot]

Action required: PR inactive for 2 days. Status update or closure in 5 days.

github-actions[bot] avatar Jan 03 '24 23:01 github-actions[bot]

Action required: PR inactive for 2 days. Status update or closure in 5 days.

github-actions[bot] avatar Jan 10 '24 12:01 github-actions[bot]

Can you resolve the conflicts

ssddOnTop avatar Jan 12 '24 08:01 ssddOnTop

Can you resolve the conflicts

done

meskill avatar Jan 12 '24 15:01 meskill