Documentation
¶
Overview ¶
Package authlab provides a self-hosted mini web app used to exercise Katana recorded-flow / auto-login authentication end-to-end.
It exposes three login styles against the same cookie-gated app surface:
- Classic HTML form POST (/login)
- Username-first multi-step (/login/step) — email → next → password
- JS SPA login (/login/spa) — client-side panels + fetch
Authenticated pages under /app/* require the session cookie set by a successful login. Tests assert that a recorded flow can unlock those pages for a subsequent crawl.
Index ¶
Constants ¶
const ( // Username / Password are the only credentials the lab accepts. Username = "tester@katana.test" Password = "katana-rocks" CookieName = "katana_session" CookieValue = "authenticated" CSRFCookie = "katana_csrf" // SecretMarker appears only on the cookie-gated /app/secret page. SecretMarker = "KATANA_AUTH_SECRET_OK" )
Variables ¶
This section is empty.
Functions ¶
func ChromeRecordingSPA ¶
ChromeRecordingSPA returns a Recorder export for the SPA fetch login.
func ChromeRecordingSimple ¶
ChromeRecordingSimple returns a Chrome DevTools Recorder export for the classic /login form.
func ChromeRecordingStep ¶
ChromeRecordingStep returns a Recorder export for the username-first flow.
func ExplicitStepsSimple ¶
ExplicitStepsSimple is a hand-authored step list for the classic login.