AM
ZH-TW
免費開始
選單
類型

使用者

可在應用程式內驗證,並透過 membership 存取帳戶的個體。

user authentication profile credentials

使用者

User 是可在應用程式內進行驗證,並透過 memberships 存取帳戶的個體。

Schema

interface User {
  id: string; // "uid..." - Unique identifier
  application_id: string; // Owning application
  status: UserStatus;
}

type UserStatus = "active" | "suspended" | "disabled" | "deleted";

屬性

屬性型別說明
idstring帶有 uid 前綴的 KSUID
application_idstring擁有此使用者的 application
statusenum目前使用者狀態

狀態值

狀態說明
active可驗證並存取資源
suspended暫時禁止存取
disabled已停用或不啟用
deleted永久移除

相關資源

┌─────────────────────────────────────┐
│               User                  │
│  ┌─────────────┐  ┌─────────────┐  │
│  │  Identity   │  │ Credentials │  │
│  └─────────────┘  └─────────────┘  │
│  ┌─────────────────────────────┐   │
│  │       Memberships           │   │
│  └─────────────────────────────┘   │
└─────────────────────────────────────┘
資源關係
Identity1:1 - 個人資料(PII)
Credentials1:N - Email/password 配對
Memberships1:N - 帳戶關聯

範例

{
  "id": "uid_2kHfPZcN9xW4mE8RtY7vB",
  "application_id": "app_root",
  "status": "active"
}

相關