@aikirun/iam
v0.44.0
Published
Aiki IAM library — pluggable identity & access management
Readme
@aikirun/iam
Optional identity and access management for the Aiki server — organizations, namespaces, API keys, and dashboard auth. Off by default; compose it into the server to require credentials.
Installation
npm install @aikirun/iamQuick Start
import { iam } from "@aikirun/iam";
import { database, server } from "@aikirun/server";
const db = database({ provider: "sqlite", path: "./aiki.db" });
const aikiServer = server({
db,
handler: {
iam: iam({
db,
secret: "your-auth-secret",
baseURL: "http://localhost:9850",
trustedOrigins: ["http://localhost:9851"],
}),
},
});Documentation
See the IAM Guide.
License
Apache-2.0
