tba-workspace
Workspace-only development harness for the split TBA identity package suite.
Overview · Installation · Quick Start · Usage · API · Contributing · Governance · License
TBA is the Tigrbl authentication and authorization suite. Use it to serve OAuth and OpenID Connect, integrate identity and policy checks into a Tigrbl application, or install a focused protocol, provider, storage, or client package.
tba-workspace isolates this responsibility: Workspace-only development harness for the split TBA identity package suite. Its package source exposes the checkout commands documented in Quick Start, allowing consumers to select this package without treating adjacent packages as part of its public contract.
Choose tba-workspace when your integration needs workspace-only development harness for the split TBA identity package suite. Match the imports below to your application boundary and install its declared dependencies before using the example.
- Public source surface: the checkout commands documented in Quick Start.
- Declared responsibility: Workspace-only development harness for the split TBA identity package suite.
- Versioned package metadata and maintained checkout examples.
tba-workspace owns workspace-only development harness for the split TBA identity package suite. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
Python >=3.10,<3.16 is required. The manifest declares runtime dependencies including tba-app-backend-wpt-verifier, tba-app-backend-wit-issuance, tba-router-wpt-verification, tba-provider-certificate-issuer-x509, tba-router-wic-ca, tba-router-wit-issuance, tba-app-backend-wic-ca, tba-concrete-certificate-x509, tba-concrete-wic, tba-protocol-workload-wimse-identifier, tba-profile-workload-credential-wimse-wic, tba-profile-workload-authentication-wimse-mtls. Use the source-checkout workflow for this workspace or test harness.
This is a source-only workspace or test harness, not an installable distribution. From its checkout, synchronize the declared environment:
uv syncThis is a source-only workspace or test harness, not an installable distribution. Use the uv checkout workflow above; this installer does not install the harness itself.
This is a source-only workspace or test harness, not an installable distribution. Use the uv checkout workflow above; this installer does not install the harness itself.
From a checkout, use uv to inspect the baseline OAuth and OpenID Connect discovery snapshots. This runs the published TBA distribution in an isolated Python 3.12 environment and reads the snapshots in this repository.
Expect a JSON object with "command": "discovery.show" and a documents object containing openid-configuration.json, oauth-authorization-server.json, and jwks.json. The baseline snapshots use an example issuer and an empty key set.
Source: docs/readme/quick_start.sh.
uv run --isolated --no-project --python 3.12 --with tba-auth==0.4.0.dev3 tba-auth discovery --format json show --repo-root .The example demonstrates the documented tba-workspace source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
Source: docs/readme/usage.sh.
uv run --isolated --no-project --python 3.12 --with tba-auth==0.4.0.dev3 tba-auth discovery --format json show --repo-root .Configure tba-workspace through the APIs in package source; its manifest describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
The inspected tba-workspace source does not establish a package-wide exception hierarchy. Preserve errors from its declared dependencies and validate inputs using the specific public contract in package source.
Use the explicit tba-workspace imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing the checkout commands documented in Quick Start; an import or successful installation alone does not establish its runtime guarantees.
tba-workspace is located in workspace and owns workspace-only development harness for the split TBA identity package suite. Source-declared APIs include the checkout commands documented in Quick Start. The manifest records its direct dependency boundary.
tba-workspace is a source-checkout harness. No installable Python namespace was found in the package layout; use its documented commands and test files.
console_scripts→tba-auth→tba_cli_identity.cli.main:main
The direct installation dependencies of tba-workspace are tba-app-backend-wpt-verifier, tba-app-backend-wit-issuance, tba-router-wpt-verification, tba-provider-certificate-issuer-x509, tba-router-wic-ca, tba-router-wit-issuance, tba-app-backend-wic-ca, tba-concrete-certificate-x509, tba-concrete-wic, tba-protocol-workload-wimse-identifier, tba-profile-workload-credential-wimse-wic, tba-profile-workload-authentication-wimse-mtls, tigrbl, tigrbl-atoms, tigrbl-base. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in package source.
No direct package-manifest dependency on tba-workspace was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
For tba-workspace, use the source-declared public interfaces (the checkout commands documented in Quick Start) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
Operate tba-workspace according to its actual entry points and collaborators. The dependency and Python requirements in the manifest are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
This README does not establish a standalone health endpoint for tba-workspace. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
Apply the input, credential, and resource constraints implemented in package source. The tba-workspace README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
This source version of tba-workspace declares Python >=3.10,<3.16. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
index.toml records the Python package inventory and layer policy.
Run uv run python scripts/package_index.py --check to verify the index against
the package manifests.
Run python -m pytest docs/readme/test_examples.py from the tba-workspace package directory for the maintained example source checks (Python compilation and non-Python file presence). Behavioral tests may live in the repository’s shared suites; the new README syntax test is not presented as runtime coverage for workspace-only development harness for the split TBA identity package suite.
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
No external certification is asserted for tba-workspace by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
The README standards CI records mechanical documentation results for its tested commit. The package source and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
Why select this package? tba-workspace provides workspace-only development harness for the split TBA identity package suite; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
How do I start? Install or synchronize the environment under Getting Started, follow the maintained example for tba-workspace, and consult package source for the exact types and signatures involved.
When should I validate an upgrade? Recheck tba-workspace whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
The repository contribution guide, package source, and manifest provide the supporting context for tba-workspace. The README policy defines the common document structure.
- tba-primitives-identity: Dependency-light identity primitives, typed helpers, path safety, and RFC 8785 JSON canonicalization for TBA identity systems.
- tba-storage-access-governance: Owned access-governance identity database tables and migrations.
- tba-storage-attestation: Owned attestation identity database tables and migrations.
- tba-storage-audit: Owned audit identity database tables and migrations.
- tba-storage-authentication: Owned authentication identity database tables and migrations.
- tba-storage-authority-graph: Owned authority-graph identity database tables and migrations.
- tba-storage-authorization-policy: Owned authorization-policy identity database tables and migrations.
- tba-storage-certificate: Owned certificate identity database tables and migrations.
- tba-storage-claims: Owned claims identity database tables and migrations.
- tba-storage-consent: Owned consent identity database tables and migrations.
- tba-storage-core: Tigrbl and SQLAlchemy identity tables, ORM models, migrations, persistence helpers, and table-owned operations for IAM runtimes.
- tba-storage-delegation: Owned delegation identity database tables and migrations.
- tba-storage-did: Owned did identity database tables and migrations.
- tba-storage-digital-credential: Owned digital-credential identity database tables and migrations.
- tba-storage-federation: Owned federation identity database tables and migrations.
See CONTRIBUTING.md for the prerequisites, the uv setup commands for a fresh clone, and one focused test to run first.
Work from the . checkout. Synchronize its declared development environment with uv, then run the relevant package tests and python -m pytest docs/readme/test_examples.py. The repository’s dedicated README job installs readme-standards==0.1.3 without resolving unrelated runtime packages.
Choose an integration
| If you want to… | Start here |
|---|---|
| Run a public OAuth/OIDC API | Public backend app and the local Compose configuration |
| Embed identity in a Tigrbl app | Tigrbl plugin |
Maintain an app using tba_auth imports |
Compatibility facade |
| Try a client-side login flow | OAuth device authorization CLI |
| Operate a deployment | Identity CLI and CLI command reference |
Architecture
Applications compose routers and runtime services over protocol packages, capabilities, providers, and storage. The runtime supplies the persistence and configuration those components need. Downstream products can use the upstream tables and bootstrap operations when provisioning realms, tenants, principals, roles, clients, sessions, and keys.
Package catalog
Start with a representative package below or browse the full package tree. Each active package has its own README. Active Python distributions and imports use tba-* and tba_*. UI packages use @tbauth/*. See the namespace migration guide for legacy names and environment variables.
Release and certification evidence
The published version badge refers to the tba-auth facade on PyPI. The workspace version badge refers to this checkout. The certification reports describe the exact scope of validated claims. Final certification and strict independent claims remain open in the current checkpoint.
- Current state and certification status
- Document authority and truth chain
- Validated execution report and final release gate
- Canonical reference docs and package release process
README maintenance
The shared logo lives at docs/assets/tba-brand.png. Package READMEs use its canonical raw URL so the same asset can render off GitHub once it is on the default branch. To update managed headers after a manifest change, run python scripts/render_readme_branding.py with Python 3.11 or newer. Add --check to detect drift. Keep the example and package guidance outside the managed block. See the quick start verification record for checks and known build blockers.
Documentation · Issues · Apache 2.0 license
This repo includes a separate sample Python package at
pkgs/110-examples/tba-example-oauth-device-authorization-cli/
that demonstrates how another CLI can implement a login command on top of
tba_auth device authorization. The flow uses issuer discovery plus the
canonical POST /device_authorization and POST /token endpoints.
See docs/examples/python-cli-device-login.md.
or embed as a plugin:
from tigrbl import TigrblApp
from tba_auth.plugin import TbaPlugin
app = TigrblApp()
plugin = TbaPlugin()
plugin.install(app)- OAuth 2.1 alignment is tracked as a profile, not as a formal RFC claim.
keysis the canonical certified command family;keyis no longer part of the certified operator surface.- public "independent" wording remains disallowed until preserved Tier 4 external peer bundles exist and promote the retained boundary.
- The authoritative executable CLI surface is
pkgs/060-runtime/tba-cli-identity/src/tba_cli_identity/cli/metadata/plus the generateddocs/reference/CLI_SURFACE.md. - A current checkpoint gap review remains published at
docs/compliance/PACKAGE_REVIEW_GAP_ANALYSIS.md. - Supplemental supporting review/plan docs remain available at
docs/compliance/INDEPENDENT_PACKAGE_REVIEW_2026-03-27.mdanddocs/compliance/CERTIFIABLE_DELIVERY_PLAN_2026-03-27.md; the authoritative active document is the SSOT, and the generated reports and top-level current-state docs are its current projections. - Dependency provenance for this checkpoint is preserved in
pyproject.toml,pkgs/060-runtime/tba-runtime-identity/pyproject.toml, anduv.lock.
Known current blockers
- preserved Tier 4 external peer bundles are still absent and
strict_independent_claims_readyremainsfalse - the package is still not truthfully certifiably fully featured or fully RFC/spec compliant because the fail-closed validated execution gates remain red
- validated clean-room runtime matrix evidence is not yet fully preserved as passing
- validated in-scope certification lane evidence is not yet fully preserved as passing
- SQLite and PostgreSQL migration portability has not yet been preserved as passing in the final validated execution report
- Tier 3 evidence has not yet been explicitly rebuilt from validated-run manifests in a fully green final gate set
- preserved execution evidence is still required for the clean-room runtime profiles listed under Python support
- release bundles and attestation verification can be rebuilt from this checkpoint, but the result remains a final-release candidate, not a truthful final certification release
Clean-room certification matrix
Use tox.ini for the same profile commands locally and in CI.
Examples:
tox -e py310-basetox -e py311-sqlite-uvicorntox -e py312-postgres-hypercorntox -e py311-tigrcorntox -e py312-devtesttox -e py311-gates
The Tier 4 peer-execution handoff package for the full supported peer-profile set is emitted under dist/tier4-external-handoff/, but preserved independent external bundles are still absent in this checkpoint, so strict independent public claims remain blocked.
Repository state
This checkpoint is a Step 12 final certification aggregation checkpoint with follow-up target/profile truth reconciliation and clean-room executor / validated-evidence contract hardening layered on top of the earlier certification-target, clean-room-matrix, published-dependency, runtime-validation, test-graph, production-grade operator-control-plane, migration-portability, fail-closed-gates, and Tier 4 peer-program work.
The current repository truth is:
fully_certifiable_now = falsefully_rfc_compliant_now = falsestrict_independent_claims_ready = falseprofile_scope_mismatch_set_empty = truealignment_only_checkpoint_no_new_certification_evidence = falseclean_room_executor_matrix_declared_complete = truevalidated_manifest_identity_contract_installed = true- the package is not yet certifiably fully featured
- the package is not yet certifiably fully RFC/spec compliant
Final package-level certification is still blocked because the fail-closed validated execution gates remain incomplete for the clean-room runtime matrix, in-scope certification lanes, migration portability preservation, Tier 3 evidence rebuilt from validated runs, and preserved Tier 4 external peer bundles.
This update keeps the retained target/profile mismatch set empty for RFC 7516, RFC 7592, and RFC 9207, and it also hardens the preserved evidence model so runtime, test-lane, and migration manifests only count as passing when they carry identity, install-substrate linkage, environment identity, and the expected runtime / pytest / revision-aware backend artifacts.
Start with:
.ssot/specs/SPEC-1052-ssot-document-authority.yaml.ssot/registry.jsondocs/compliance/truth_chain.mddocs/compliance/AUTHORITATIVE_CURRENT_DOCS.mdCURRENT_STATE.mdCERTIFICATION_STATUS.mddocs/compliance/current_state_report.mddocs/compliance/certification_state_report.mddocs/compliance/release_gate_report.mddocs/compliance/runtime_profile_report.mddocs/compliance/validated_execution_report.mddocs/compliance/PEER_MATRIX_REPORT.mddocs/compliance/TIER4_PROMOTION_MATRIX.mddocs/compliance/RELEASE_DECISION_RECORD.md
Historical planning and scaffold-layout documents are retained under docs/archive/ and are non-authoritative for the current repository state.
Runtime entrypoints
- standalone gateway/application export:
tba_auth.gateway:app - application factory export:
tba_app_backend_public:app - plugin installation:
tba_auth.plugin:TbaPlugin
Current runtime model
The package is treated as an ASGI 3 application package, not as a single bundled server. Runtime-serving claims are separated into runner profiles. Uvicorn, Hypercorn, and Tigrcorn are declared as runner-qualified certification targets, and the serve operator can launch runtime when the selected runner profile is installed and the Tigrbl runtime stack is importable in the active environment.
Tigrbl-only policy
This checkpoint remains intentionally aligned to Tigrbl guidance:
- prefer Tigrbl exports and Tigrbl type exports,
- use Tigrbl ops and surfaces rather than ad-hoc framework routes,
- avoid direct FastAPI or Starlette imports and dependencies in verified release scopes.
Downstream implementation best practices
Downstream products should treat tba_auth as the owner of the identity
schema and product surfaces. A downstream authn/authz platform should compose
the app, plugin, split identity/authn/authz/protocol packages, and API/UIX front doors rather than
creating parallel tables for realms, tenants, principals, roles, sessions,
clients, tokens, or keys.
Use these boundaries:
- Schema and default rows belong in upstream TBA table packages. Tables
such as
RealmandTenantuse Tigrbl'sBootstrappablecontract withDEFAULT_ROWS; the default superuser is created by the upstream admin bootstrap service. - Downstream repositories may declare product-specific seed intent, but they should materialize it through upstream Tigrbl table/bootstrap abstractions or API/front-door operations. They should not introduce duplicate SQLAlchemy declarative bases or shadow identity tables.
- Runtime serving should select an explicit runner profile. For Tigrcorn-first
deployments, install the
tigrcornextra and launch withtba-auth serve --server tigrcornor thetigrcornCLI against the downstream ASGI app. - Keep provenance order: backend capability first, API front door second, UIX
third. The platform-admin path is
tba-runtime-identity-administration->tba-app-backend-platform-administration->@tbauth/ui-platform-administration; apply the same pattern to tenant-admin, developer, service-admin, public, my-account, and resource-validation surfaces.
Python support
- Declared package range — the root
pyproject.tomldeclares Python>=3.10,<3.16. A checkout also needs an interpreter compatible with its pinned dependencies. - Clean-room runtime profiles —
tox.inidefines CPython 3.10, 3.11, and 3.12 lanes for base,sqlite-uvicorn, andpostgres-hypercorn. Thetigrcornprofile has 3.11 and 3.12 lanes. - Package CI — the separate package matrix covers CPython 3.10 through 3.14 for eligible packages, subject to each package's Python metadata.
- Certification evidence — preserved runtime evidence is incomplete. The Tigrcorn lanes are pinned and included in the clean-room matrix, with independent validation artifacts still missing. See CERTIFICATION_STATUS.md and the certification state report for the evidence and remaining gaps.
For installation and development commands, see CONTRIBUTING.md.
Changes to tba-workspace follow the maintainer review process of tigrbl/tigrbl_auth and its contribution guide. Author attribution remains in the manifest; this README does not assign new publishing or administrative authority.
tba-workspace follows the versioned package-guide-v1 outline. All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
The tba-workspace source version is 0.4.0.dev2. This change standardizes documentation and adds a development-only gate; it does not publish a new runtime version or declare a previously unpublished package released. Preserve explicit deprecation and replacement instructions where present.
Licensed under Apache-2.0. See LICENSE.
Apache-2.0
See NOTICE for attribution.
