cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

Enable to customize the authorizer for router

Open git-hulk opened this issue 5 months ago • 2 comments

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 Authorizer to an interface in HandlerOptions
  • Allow to pass the Authorizer via router's config and BuildGraphMuxOptions

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

git-hulk avatar Aug 29 '25 06:08 git-hulk

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.

github-actions[bot] avatar Aug 29 '25 06:08 github-actions[bot]

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!

alepane21 avatar Oct 29 '25 10:10 alepane21