@@ -14,17 +14,15 @@ export INFERADB_MGMT__AUTH__KEY_ENCRYPTION_SECRET=$(openssl rand -base64 32)
1414cargo run --bin inferadb-management
1515```
1616
17- Register a user :
17+ Register and login :
1818
1919``` bash
20+ # Register
2021curl -X POST http://localhost:3000/v1/auth/register \
2122 -H " Content-Type: application/json" \
2223 -d ' {"email": "alice@example.com", "password": "securepass123", "name": "Alice"}'
23- ```
24-
25- Login:
2624
27- ``` bash
25+ # Login
2826curl -X POST http://localhost:3000/v1/auth/login/password \
2927 -H " Content-Type: application/json" \
3028 -d ' {"email": "alice@example.com", "password": "securepass123"}'
@@ -47,6 +45,18 @@ curl -X POST http://localhost:3000/v1/auth/login/password \
4745| ** Client Auth** | Ed25519 certificates, JWT assertions |
4846| ** Token Issuance** | Vault-scoped JWTs for Server API |
4947
48+ ## Key Concepts
49+
50+ | Entity | Description |
51+ | ------------ | --------------------------------------------- |
52+ | User | Account with auth methods (password, passkey) |
53+ | Organization | Workspace with members and roles |
54+ | Vault | Authorization policy container |
55+ | Client | Service identity with Ed25519 certs |
56+ | Team | Group-based vault access |
57+
58+ ** Auth Flow:** User → Session → Vault access → JWT → Server API
59+
5060## Architecture
5161
5262``` mermaid
@@ -64,18 +74,6 @@ graph TD
6474| inferadb-management-storage | Memory or FoundationDB |
6575| inferadb-management-grpc | Server API client |
6676
67- ## Key Concepts
68-
69- | Entity | Description |
70- | ------------ | --------------------------------------------- |
71- | User | Account with auth methods (password, passkey) |
72- | Organization | Workspace with members and roles |
73- | Vault | Authorization policy container |
74- | Client | Service identity with Ed25519 certs |
75- | Team | Group-based vault access |
76-
77- ** Auth Flow:** User → Session → Vault access → JWT → Server API
78-
7977## Configuration
8078
8179``` bash
0 commit comments