Core ConceptArchitecture
Applications
Applications are isolated cryptographic security tenants in NineAuth. Each application maintains its own API keys, end-users, license policies, audit records, and webhook endpoints.
Isolation Boundaries
In NineAuth, applications provide strict multi-tenant partition boundaries:
- User Database: End-users registered in App A cannot authenticate against App B.
- Hardware Fingerprints: HWID bindings are scoped strictly per application.
- Opaque Sessions: Session tokens issued by one application cannot access resources in another.
- Secrets & Master Keys: Each application possesses independent signing keys for webhook HMAC verification.
API Key Types
Every application provides two key tiers:
| Key Prefix | Scope | Usage |
|---|---|---|
| app_pub_live_* | Client Runtime | Shipped inside native desktop binaries for runtime authentication. |
| app_sec_live_* | Management Admin | Backend servers only. Full CRUD control over licenses and users. |
Never Ship Secret Keys
Never embed app_sec_live_* keys inside native desktop executables (C#, C++, or Electron). Reverse engineers can extract them with strings or memory inspection. Use app_pub_live_* for client binaries.