Skip to content

docs: add auth preview capability - #153

Open
villagesql-adam wants to merge 2 commits into
mainfrom
adam/docs-update-to-c841e1caaff
Open

docs: add auth preview capability#153
villagesql-adam wants to merge 2 commits into
mainfrom
adam/docs-update-to-c841e1caaff

Conversation

@villagesql-adam

Copy link
Copy Markdown
Member
  • preview-capabilities.mdx: new Authentication Methods section, capability-index row, and frontmatter description entry for vsql::preview::auth (AuthCapability, handler contract, ops table, vsql_auth_test example, SQL binding + client flow)
  • Aligns to villagesql-server@c841e1caaff (auth capability, PR #762); SQL flow and output verified on the live server

AI=CLAUDE

- preview-capabilities.mdx: new Authentication Methods section,
  capability-index row, and frontmatter description entry for
  vsql::preview::auth (AuthCapability, handler contract, ops
  table, vsql_auth_test example, SQL binding + client flow)
- Aligns to villagesql-server@c841e1caaff (auth capability,
  PR #762); SQL flow and output verified on the live server

AI=CLAUDE
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
villagesql 🟢 Ready View Preview Jul 23, 2026, 2:47 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

The auth preview capability was redesigned after this branch was
cut. Rewrite the Authentication Methods section to the current API:

- typed handler `AuthResult authenticate(AuthContext&)` replacing the
  raw `vef_auth_result_t(ctx, ops)` form; scoped `AuthResult::kOk/
  kReject/kError` replacing raw VEF_AUTH_* constants
- fluent `make_auth<&handler>("name").client_plugin(...).build()`
  builder + single-descriptor `AuthCapability` constructor, replacing
  the removed 3-arg constructor
- `client_plugin` documented as optional (defaults to
  mysql_clear_password), correcting the prior "required" claim
- document the new `set_active_roles` staging + no-escalation semantics
- condense the Complete Example to the core token flow

Aligns to villagesql-server@4d7219dcdf1 (preview/auth.h redesign)

AI=CLAUDE
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
`vsql_auth_test` is a registered VEF auth method — the same way an installed
plugin name is accepted.

The method pins `mysql_clear_password`, so the client must pass

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are some changes coming here, so let's wait a bit until that arrives to document. The plan is to accept any secret that is provided unscrambled, --enable-cleartext-plugin is one option to do so, there are other options

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.

2 participants