Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/core/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ authorizer mcp \
--database-type=sqlite \
--database-url=auth.db \
--url=http://localhost:8080 \
--jwt-type=HS256 \
--jwt-secret=your-jwt-secret \
--encryption-key=your-encryption-key \
--mcp-bearer="$USER_ACCESS_TOKEN"
```
Expand Down Expand Up @@ -326,6 +328,8 @@ Most MCP hosts read a JSON config that declares the command to spawn. For
"--client-id", "YOUR_CLIENT_ID",
"--database-type", "sqlite",
"--database-url", "auth.db",
"--jwt-type", "HS256",
"--jwt-secret", "your-jwt-secret",
"--encryption-key", "your-encryption-key",
"--url", "https://auth.example.com",
"--mcp-bearer", "USER_ACCESS_TOKEN"
Expand Down
3 changes: 3 additions & 0 deletions docs/core/rate-limiting.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ services:
- --database-url=postgres://user:pass@db:5432/authorizer
- --url=https://auth.example.com
- --encryption-key=your-encryption-key
- --jwt-type=HS256
- --jwt-secret=your-jwt-secret
- --admin-secret=your-admin-secret
- --redis-url=redis://redis:6379
- --rate-limit-rps=30
- --rate-limit-burst=20
Expand Down
8 changes: 7 additions & 1 deletion docs/core/sso-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ authorizer \
--smtp-username "auth@yourcompany.com" \
--smtp-password "..." \
--smtp-sender-email "auth@yourcompany.com" \
--encryption-key your-encryption-key
--jwt-type RS256 \
--jwt-private-key "$(cat jwt-private.pem)" \
--jwt-public-key "$(cat jwt-public.pem)" \
--encryption-key your-encryption-key \
--client-id YOUR_CLIENT_ID \
--client-secret YOUR_CLIENT_SECRET \
--admin-secret YOUR_ADMIN_SECRET
```

Key flags for SSO:
Expand Down
26 changes: 26 additions & 0 deletions docs/deployment/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,32 @@ docker run -p 8080:8080 quay.io/authorizer/authorizer:latest \
--client-secret=secret
```

### Persisting data across restarts

The command above writes `test.db` inside the container, so **every restart
starts from an empty database**. Mount a named volume and put SQLite on it:

```bash
docker run -p 8080:8080 -u root \
-v authorizer_data:/authorizer/data \
quay.io/authorizer/authorizer \
--database-type=sqlite \
--database-url=/authorizer/data/data.db \
--url=http://localhost:8080 \
--client-id=123456 \
--client-secret=secret \
--admin-secret=admin \
--jwt-type=HS256 \
--jwt-secret=test \
--encryption-key=test-encryption-key
```

`-u root` is needed because the image runs as uid 1000 (`authorizer`), and a
named volume mounted at a path the image does not already own is created
root-owned — without it the process cannot create the database file. Drop it
once you `chown` the volume, or use a managed database instead.


Then open `http://localhost:8080/app` for the built-in login UI.

---
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/hasura.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can also deploy Authorizer instance using

> **Note:** If you are trying out with one click deployment options like railway then template is configured in a way that it will also deploy postgres + redis for you. For other deployment options, start the server with the required CLI flags:
> ```bash
> ./authorizer --database-type=sqlite --database-url=test.db --jwt-type=HS256 --jwt-secret=test --encryption-key=test-encryption-key --admin-secret=admin --client-id=123456 --client-secret=secret
> ./authorizer --database-type=sqlite --database-url=test.db --url=http://localhost:8080 --jwt-type=HS256 --jwt-secret=test --encryption-key=test-encryption-key --admin-secret=admin --client-id=123456 --client-secret=secret
> ```
> You can also configure `--redis-url` to have persisted sessions. For more information check [Server Configuration](/core/server-config).

Expand Down