tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.29k stars 254 forks source link

feat(auth): Add flexibility to choose custom authentication providers per field #3130

Open karatakis opened 2 days ago

karatakis commented 2 days ago

Summary:
Modify the @protected directive to accept the providers parameter. This parameter overwrites the default behavior of the@protected and modifies it to check against a list of providers. For more info check the requested issue https://github.com/tailcallhq/tailcall/issues/3116.

Issue Reference(s):
Fixes https://github.com/tailcallhq/tailcall/issues/3116

Build & Testing:

Checklist:

codecov[bot] commented 2 days ago

Codecov Report

Attention: Patch coverage is 91.70732% with 34 lines in your changes missing coverage. Please review.

Project coverage is 86.77%. Comparing base (c9bef7a) to head (46a7738). Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/core/blueprint/auth.rs 94.28% 18 Missing :warning:
src/core/blueprint/operators/protected.rs 69.76% 13 Missing :warning:
src/core/ir/eval.rs 66.66% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3130 +/- ## ========================================== - Coverage 86.89% 86.77% -0.13% ========================================== Files 275 275 Lines 26896 27408 +512 ========================================== + Hits 23372 23782 +410 - Misses 3524 3626 +102 ```

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


🚨 Try these New Features:

karatakis commented 6 hours ago

Documentation here: https://github.com/tailcallhq/tailcall/pull/3130