You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by thisarattr August 27, 2021
Hi all,
I wanted to add custom annotation to all generated resolver methods, So that I can enforce authz on entry point to seperate data resources separately.
I achieved it using custom directive on schema which is added to all fields and use directiveAnnotationsMapping on gradle plugin config to generate it. But still ppl can choose to add it or they can forget/miss it, which leads to hv the resource without any authz check.
Thus im trying to add it to generation. Basically if I can add some config saying I want this method annotation on all recover interface methods, it will enforced.
Is there any way to me to achieve that?
Thanks in advance!
(last option im thinking is to hv some sort of linting to validate it and fail the build)
The text was updated successfully, but these errors were encountered:
Discussed in #783
Originally posted by thisarattr August 27, 2021
Hi all,
I wanted to add custom annotation to all generated resolver methods, So that I can enforce authz on entry point to seperate data resources separately.
I achieved it using custom directive on schema which is added to all fields and use
directiveAnnotationsMapping
on gradle plugin config to generate it. But still ppl can choose to add it or they can forget/miss it, which leads to hv the resource without any authz check.Thus im trying to add it to generation. Basically if I can add some config saying I want this method annotation on all recover interface methods, it will enforced.
Is there any way to me to achieve that?
Thanks in advance!
(last option im thinking is to hv some sort of linting to validate it and fail the build)
The text was updated successfully, but these errors were encountered: