Skip to content
Get started

Product Tour

Bastionary is a single self-hosted backend for authentication, licensing and access control for the apps you ship. This is the guided walkthrough — start with the architecture, then explore each capability.

How it fits together

Bastionary architecture diagram — desktop and web apps call a single command API gateway in front of authentication, licensing, payments and catalog services.
Your apps make a couple of HTTP calls; Bastionary handles auth, licensing, payments and delivery behind one stable gateway.

Explore each capability

Authentication flow

Your Bastionary server hosts the full login experience so your app never touches a password.
1
A user clicks "Sign in" in your app and is redirected to Bastionary's hosted login at your Bastionary server — branded, OIDC-compliant, and covering passwords, TOTP, WebAuthn passkeys, magic links and email OTP.
2
Bastionary verifies credentials, enforces rate limits and account lockout, then runs any required multi-factor step before issuing a signed token.
3
The user is sent back to your redirect URI with an authorization code; your server exchanges it for an RS256-signed JWT and reads the profile from the userinfo endpoint.

License management

Issue, validate, activate and revoke license keys without writing any billing code.
1
Each license issued by your server is a key in the human-readable SF-XXXX-XXXX-XXXX format, scoped to a product and an activation limit of three machines by default.
2
Desktop apps call the LICENSE.VALIDATE command on startup with a machine fingerprint — no auth required — and receive validity, tier and the latest product version in one response.
3
First launch calls LICENSE.ACTIVATE to bind the machine; re-activating the same machine is free, and a license can be revoked at any time with one command.

Admin dashboard

A JWT-gated admin console at your Bastionary server gives you full operational visibility.
1
The dashboard lists every user, team, role and license across your apps, with search and filtering, so support questions are answered in seconds.
2
Built-in debugging panels — FGA.EXPLAIN for authorization decisions and ENTITLEMENT.EXPLAIN for feature access — show the exact evaluation trace behind any "access denied".
3
An audit panel records every API call with user, IP, timestamp and result, giving you a tamper-evident history for compliance and incident review.

One command API

Every operation in Bastionary is a single named command, callable over plain HTTP and JSON.
1
POST a JSON body to /api/v1/execute with a command name like LICENSE.VALIDATE and a params object — over 400 commands span auth, licensing, payments, teams and catalog.
2
GET /api/v1/commands returns the full command catalog with JSON schemas, so an AI agent or script can discover the entire surface without reading docs.
3
Because the surface is app-agnostic, your products evolve freely while Bastionary stays a stable, versioned gateway in front of them.