osohq / gitclub

Realistic examples of using Oso in an application for authorization. Built for multiple different backends.
54 stars 16 forks source link

WIP: proof of concept for new enforcement APIs #11

Closed gkaemmer closed 2 years ago

gkaemmer commented 3 years ago

Biggest thing here is replacing the global authorized session with local calls to authorize_query(action, model), which while sacrificing some "defense-in-depth" makes the API more similar to what we'd use in generic (non-sqlalchemy-specific) cases.

gj commented 2 years ago

@gkaemmer can we close this one?