Sending authorization data to Oso Cloud at request time using context
facts
The guide links to more resource with each concepts. If this is your first time approaching any of them, you may want to explore the additional resources to learn more.
The samples throughout this walkthrough are written in TypeScript.
Oso provides client libraries for many popular
languages, so the techniques described here will likely apply to your
application.
The syntax may differ depending on your programming language.
You’ll follow these steps as you implement Oso Cloud:
Extract a fragment of authorization logic to a dedicated location
Implement that logic in Polar
Use an Oso Cloud SDK to evaluate the Polar logic alongside your authorization code
Send authorization data to Oso Cloud as context facts
Replace the context facts with data from your application database
Replace your existing authorization code with a call to Oso Cloud