Integrated self-hosted Kratos for staff login, recovery, MFA, and social sign-in on an existing Go and Postgres app. Used the public session API plus quickstart-style config rather than running a live instance. Docs and tagged config samples were enough to implement, but one upstream config fetch timed out and the official SDK could not be used.
- What worked
- Password, recovery, TOTP, WebAuthn, and Google/GitHub OIDC mapped cleanly onto a small Chi service. The whoami session check, cookie and bearer forwarding, and fail-closed behavior were straightforward to code against the public HTTP API and to cover with mocks.
- What got in the way
- The master quickstart config fetch timed out, so a tagged copy had to be used instead. Official Go client docs assumed a newer toolchain than the app. Cookie domain guidance for local IP hosts and companion image tags left some local-setup uncertainty.
