Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect finagle filter to specific controller #203

cocodrino opened this issue May 2, 2015 · 1 comment

connect finagle filter to specific controller #203

cocodrino opened this issue May 2, 2015 · 1 comment


Copy link

@cocodrino cocodrino commented May 2, 2015

Hi , it's not clear for m the relation between finatra controllers nd finagle services and how can I compose them with filter, for instance, suppose than I wish than some routes will be filtered and check if the user is authenticate, with finagle you could use a filter which receive some service, but in finatra I dont know how apply the filter to some controllers, this is the only example in the doc

class MyServer extends FinatraServer
addFilter(new SimpleFilter)
register(new ExampleController)
//end <-- BTW seems than the author is rubyst :D

would be cool can do
register(onlyAuthenticateFilter andThen UserController))

but controllers seems not be services, what is the correct approach in this case?

Copy link

@scosenza scosenza commented May 2, 2015

@scosenza scosenza closed this May 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants