osohq / oso

Oso is a batteries-included framework for building authorization in your application.
https://docs.osohq.com
Apache License 2.0
3.44k stars 172 forks source link

hybrid_method and hybrid_attribute SQLAlchemy support #857

Open hueypeard opened 3 years ago

hueypeard commented 3 years ago

Hi, I'm interested in implementing a permissions system using oso but sadly need to call out to something else to generate a subquery whose results are checked. Is this planned at all?

Thanks for the amazing work otherwise!

dhatch commented 3 years ago

Hey @hueypeard --

Thanks for your interest in Oso! We've had a few other requests for this. Could you expand a bit more on your use case?

Are you using both hybrid_attribute & hybrid_method? How do you want to use them from your authorization policy?

hybrid_attribute would be a bit easier for us to support, but ultimately both should be feasible.