Playground

Loading WebAssembly…
Start with an example
01

Policies

Write one or more SPDL statements

SPDL
policies.spdl
# One statement per line · # comments on separate lines—
02

Authorization request

Fill in the request — no JSON required

FORM
Subjectprincipals

Use users, groups or entities. Roles are derived from SPDL role policies.

Attributesoptional

Provide typed values for conditions. Choose multiple values to create an array.

Your input stays in this browser. It is never uploaded or saved.
Ctrl + Enter

03Authorization result

Not run yet
Ready to test your policies.

Select Evaluate to check whether this request is allowed.

BOOLEAN OUTPUT
New to SPDL?A one-minute reference+

Write a policy

grant user alice read book

Use effect, principal type, principal, action and resource. Each line is a statement; deny explicitly denies access.

Add a condition

grant user alice read book if clearance >= 3

Add an attribute and select its type. Use multiple values for an array. Load the Conditions example to try it.

Read the result

true — the request is allowed.
false — access is denied or no grant applies.
Input and execution errors are shown separately, never as false.

Full SPDL documentation ↗

Browser sandbox One service · up to 500 statements · 256 KiB total input · 5-second evaluation deadline.External custom functions and token assertion are not supported. Enter test identities under Subject.

Powered by Speedle · Go + WebAssembly · Engine & license notices · Source & build instructions