Enable to customize the authorizer for router
Component(s)
router
Is your feature request related to a problem? Please describe.
In some cases, we would like to customize the message when the authorization error occurs.
Describe the solution you'd like
To achieve this goal, we need those potential changes:
- Change
Authorizerto an interface in HandlerOptions - Allow to pass the
Authorizervia router's config andBuildGraphMuxOptions
Describe alternatives you've considered
We're already a wundergraph Enterprise customer. And happy to submit a PR to resolve this if it sounds good to you.
Additional context
No response
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.
Hi @git-hulk , we are taking a look at this. Can you explain your use case in more detail? Also, it would be nice to see an example of how you think the new interface would be used (inside a custom module, I guess) to solve your case study!