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
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>"
Click to show internal directories.
Click to hide internal directories.