Skip to content

SecurityDept Documentation ​

SecurityDept is a reusable authentication and authorization stack. It has three deliverable layers:

  • Rust crates for server-side verification, provider integration, auth contexts, and host configuration.
  • TypeScript packages for browser, framework, and host-runtime auth clients.
  • Reference applications that exercise the same contracts in an Axum server and a React web UI.

The repository README is the entry point. This page tells you which document owns a topic; it does not duplicate package API reference.

Choose A Path ​

Integrating Rust ​

Read Architecture for crate boundaries, then Auth Context and Modes for the product model. Each published crate has rustdoc as its API reference.

Integrating TypeScript ​

Read Client SDK Guide. It defines the public package families, the explicit environment contract, lifecycle expectations, and the distinction between public traits and internal RxJS composition.

Running The Reference Runtime ​

The executable baseline is apps/server plus apps/webui. Start with the root README and config.example.toml; Features lists the routes and capabilities it demonstrates.

Maintaining The Repository ​

Documentation Ownership ​

TopicAuthority
Repository entry and local developmentREADME
Runtime and crate layeringArchitecture
Capability availabilityFeatures
Auth-context terminology and ownershipAuth Context and Modes
TypeScript package and host contractsClient SDK Guide
Error responses and disclosureError System Design
Client-IP policyReal-IP Strategy
ReleasesRelease Automation
Compatibility changesTS SDK Migrations
Active priorities and deferralsRoadmap
External integration evidenceOutposts

Source And Rendered Docs ​

docs/en and docs/zh are the source documents. docsite/ is a VitePress render layer that links to those files; do not create a second copy of the content. Validate the site with just build-docs.

Package README files are generated by release-cli metadata sync. Keep package-specific contracts in rustdoc, TypeScript exports, and the focused documents above; do not hand-edit generated README content without updating the generator.

Documentation Rules ​

  • Describe current behavior or an explicitly marked future plan, not internal historical narrative.
  • Link to the public package/subpath or crate that owns a contract.
  • Keep reference-app routes and composition code out of SDK contract claims.
  • Update both English and Chinese source documents when changing user-facing project documentation.

English | 中文

MIT License.