Skip to content

docs: beginner end-to-end tutorial + fix incorrect ABAC/login examples#60

Merged
jlc488 merged 1 commit into
mainfrom
docs/beginner-tutorial
Jun 3, 2026
Merged

docs: beginner end-to-end tutorial + fix incorrect ABAC/login examples#60
jlc488 merged 1 commit into
mainfrom
docs/beginner-tutorial

Conversation

@jlc488

@jlc488 jlc488 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Docs overhaul, PR 1 of N (the rest expand each guide to beginner depth).

New: a zero-to-running Tutorial (en/ko)

A complete copy-paste walkthrough for someone who has never used the kit — create the project, run Postgres via Docker Compose, configure, boot, log in, create a permission/role/user, protect your own endpoint, scope data to the tenant, and add an ABAC policy. Every command and file shown in full; verified against a working 0.4.2 consumer. Wired into the mkdocs nav.

Fixes: stale/incorrect examples (would not compile / 401)

  • access.md (en/ko) ABAC — the example used a PolicyEvaluator shape and an 8-arg new PolicyContext(...) that don't exist. Corrected to the real pattern: implement a Policy bean (the kit's DefaultPolicyEvaluator dispatches by name) + build the context with PolicyContext.builder().
  • quick-start.md (en/ko) login — used password; the field is rawPassword.

mkdocs build --strict passes.


문서 전면 개편 PR 1/N. 0→실행 초보 튜토리얼(en/ko) 신규 + 실제 API와 안 맞던 예제 정정(access.md ABAC: 실제 Policy 빈 + PolicyContext.builder(); quick-start 로그인 passwordrawPassword). mkdocs build --strict 통과. 나머지 가이드 심화는 후속 PR.

Adds a zero-to-running Tutorial (en/ko) — a complete copy-paste walkthrough for
someone new to the kit: create the project, run Postgres via Docker Compose,
configure, boot, log in, create a permission/role/user, protect an endpoint,
scope data to the tenant, and add an ABAC policy. Wired into the mkdocs nav.

Also fixes stale/incorrect code in existing docs (would not compile / 401):
- access.md (en/ko): the ABAC example used a `PolicyEvaluator` shape + an 8-arg
  `new PolicyContext(...)` that don't exist. Corrected to the real pattern —
  implement a `Policy` bean (the kit's DefaultPolicyEvaluator dispatches by name)
  and build the context with `PolicyContext.builder()`.
- quick-start.md (en/ko): the login example used `password`; the field is
  `rawPassword`.

All verified against the 0.4.2 API and a working consumer setup. `mkdocs build
--strict` passes.
@jlc488 jlc488 merged commit 3960575 into main Jun 3, 2026
2 checks passed
@jlc488 jlc488 deleted the docs/beginner-tutorial branch June 3, 2026 12:22
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