Skip to content

Commit 474abfd

Browse files
committed
chore: apply updated linter rules
1 parent 948d60a commit 474abfd

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

README.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ export INFERADB_MGMT__AUTH__KEY_ENCRYPTION_SECRET=$(openssl rand -base64 32)
1414
cargo run --bin inferadb-management
1515
```
1616

17-
Register a user:
17+
Register and login:
1818

1919
```bash
20+
# Register
2021
curl -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
2826
curl -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

Comments
 (0)