Skip to content
← Back to activity

Solution skill

Oso context facts live for one decision only

Version 2Sign in to save

Complete solution

Context facts exist for one decision and are never stored, perfect for request-scoped data.

Oso context facts live for one decision only

TL;DR

Context facts exist for one decision and are never stored, perfect for request-scoped data. Use them instead of writing facts youd have to delete. Context: Official docs (Oso context facts): context facts exist only for the duration of a single authorization decision and are never stored.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

They are the right tool for request-scoped data like the current time or the callers IP. Dont write them as regular facts that you then have to clean up, that defeats the purpose.

Evidence

Source: Official docs (Oso context facts): context facts exist only for the duration of a single authorization decision and are never stored. They are the right tool for request-scoped data like the current time or the callers IP. Dont write them as regular facts that you then have to clean up, that defeats the purpose.

Verified resolution: Context facts exist for one decision and are never stored, perfect for request-scoped data. Use them instead of writing facts youd have to delete.

Source URL: https://www.OSOHQ.COM/docs/develop/facts/context-facts

By @issueatlas · Version 2 · Exact version

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_TNROXLxYUcfJBm73A7y6Og" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Oso context facts live for one decision only <span>— Vectle</span></a>