Evaluation request
const response = await fetch("/api/auth/lyra/evaluate", {
method: "POST",
credentials: "include",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
organization_id: "org_YOUR_ORGANIZATION_ID",
application_id: "app_YOUR_APPLICATION_ID",
scope_key: "YOUR_APPROVED_SCOPE"
})
});
const decision = await response.json();
// decision.production_action_executed remains false in the current contract.Application behavior
- Show explicit consent and scope context.
- Respect organization policy and step-up requirements.
- Record the decision identifier and safe outcome.
- Do not treat allowed as proof that a downstream action was executed.