Skip to content

fix(docs): add mandatory flags missing from runnable examples - #89

Merged
lakhansamani merged 2 commits into
mainfrom
fix/mandatory-flags-in-examples
Aug 14, 2026
Merged

fix(docs): add mandatory flags missing from runnable examples#89
lakhansamani merged 2 commits into
mainfrom
fix/mandatory-flags-in-examples

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Why

Three documented commands could not boot as written. Each fails on a flag the server now requires, before reaching the rest:

Page Missing Fails with
sso-guide --jwt-*, --client-id/secret, --admin-secret missing jwt type
rate-limiting (compose) --jwt-*, --admin-secret missing jwt type
mcp (both bash and JSON forms) --jwt-* starts, then every tool call returns Unauthenticated

The MCP one is the subtle case: authorizer mcp opens the database and validates the bearer itself, so it needs the same --jwt-* settings as the server that minted the token. Without them it starts fine and then fails every call, which reads as a permissions bug rather than missing config.

Verified the corrected sso-guide flag set boots against a build of authorizer main — it reaches the HTTP listener instead of exiting.

Also: persisting data

The Docker quick start wrote SQLite inside the container, so every restart began from an empty database and nothing said so. Adds a named-volume variant, including why -u root is needed (the image runs as uid 1000, and a named volume mounted at a path it does not already own is created root-owned).

Scope

Only blocks that actually start a server. Left alone: per-engine flag fragments in databases.md, the FGA store snippet in authorization.md, the v1 "before" examples, and the env-var mapping blocks that end in ....

npm run build clean, zero broken-link or anchor warnings.

Three blocks could not boot as written:

- sso-guide: no --jwt-*, --client-id/secret or --admin-secret. Fails on
  `missing jwt type` after --encryption-key passes.
- rate-limiting compose: no --jwt-* or --admin-secret.
- mcp: no --jwt-*. `authorizer mcp` validates the bearer itself, so it
  needs the same JWT settings as the server that minted it — without them
  every tool call returns Unauthenticated.

Verified the corrected sso-guide flag set boots against a build of main.

Also documents persisting SQLite across restarts with a named volume; the
Docker quick start writes the database inside the container, so every
restart began from an empty one.
@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for authorizerdev-docs ready!

Name Link
🔨 Latest commit 434adfe
🔍 Latest deploy log https://app.netlify.com/projects/authorizerdev-docs/deploys/6a7f16e50b0ec30008c0fef2
😎 Deploy Preview https://deploy-preview-89--authorizerdev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

The server exits at boot without --url (authorizerdev/authorizer#764).
These commands could not start as written.
@lakhansamani
lakhansamani merged commit be58cfb into main Aug 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant