httpserver

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Command httpserver is a minimal end-to-end demo: register, login (JWT + cookie) and a role-protected endpoint, all wired from the identity core.

go run ./examples/httpserver        # listens on :8080 (override with PORT)
curl -s localhost:8080/register -d '{"userName":"jane","email":"m@x.com","password":"Abcdef1!"}'
curl -s localhost:8080/login    -d '{"userName":"jane","password":"Abcdef1!"}'
curl -s localhost:8080/me -H "Authorization: Bearer <accessToken>"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL