DEVELOPER DOCUMENTATION

Keep the country decision close.

Four source packages are included with typed clients, bounded caches, timeouts, safe retry behavior, explicit policy decisions and server middleware integration. They have not been published to public package registries.

PHP / Composer

Local source distribution · v0.1.0

composer install
Download source ↓

Python / pip

Local source distribution · v0.1.0

pip install ./sdks/python
Download source ↓

Java 17 / Maven

Local source distribution · v0.1.0

mvn -f sdks/java/pom.xml package
Download source ↓

.NET 8 / ASP.NET Core

Local source distribution · v0.1.0

dotnet build sdks/dotnet/Origooo.csproj
Download source ↓

Python / WSGI example

from origooo import Client, Policy, WSGIMiddleware
import os
client = Client(os.environ["ORIGOOO_KEY"], base_url="https://YOUR_HOST")
policy = Policy(allowed=frozenset({"IN", "US"}), unknown="allow")
app = WSGIMiddleware(app, client, policy, trusted_proxies=[])

Proxy trust is explicit

The SDKs do not trust arbitrary forwarded headers. PHP, Python and Java include CIDR-based chain resolution. ASP.NET Core uses the connection IP after your own correctly configured Forwarded Headers middleware.

Unknowns and outages

Choose allow, deny, or challenge. Included middleware returns a 403 decision for deny/challenge so your application can supply its own challenge flow. Add trusted administrator bypasses and route policy versions in your framework. Use 451 only when an applicable legal restriction warrants it.

PHP and Python tests run in this workspace. Java and .NET source require their build toolchains for compile/runtime validation.

YOUR NEXT BUILD STARTS HERE

Get your free API key.

1,000 monthly credits. No credit card required.

Account services are not connected in this preview. Explore the dashboard or download the implementation from your workspace.
Read the integration guide

Production accounts require verified email. Google OAuth and Paddle need deployment credentials.