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

Generating a org.http4s.AuthedService? #158

Closed
jatcwang opened this issue Dec 30, 2016 · 2 comments
Closed

Generating a org.http4s.AuthedService? #158

jatcwang opened this issue Dec 30, 2016 · 2 comments

Comments

@jatcwang
Copy link

I had to implement authentication for my service, but I don't think I can make it work with Rho as it is now.
In a multi-tenant application, I need contextual information around the user and the organization they belong to.

Currently Action's act field has the signature (Request, T) => Task[Response] which means I can't pass on the auth context for the user other than stuffing it inside Request's attributes, which I'm not a fan of due to lack of type safety.

In the context of Rho, is it possible to extend it in such a way that we can plug in an arbitrary Request type?

@zarthross
Copy link
Member

FYI there is a task for general talk about authorization: #14.

@bryce-anderson
Copy link
Member

As @zarthross noted, its something I've been interested in but not found the time/need to do. I'm definitely interested in authentication/authorization in rho and it would be a really awesome addition to the generated swagger docs.

All that said, I haven't invested any time into it. Ideas and PR's welcome. 😄

Closing as a duplicate of #14. Further discussion should continue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants