Documentation
¶
Overview ¶
Command cli-device-login signs a CLI in with the RFC 8628 device grant. It prints a short code and URL, the user approves on any device, and the CLI polls until tokens arrive. Demo: run go run ./examples/cli-device-login/server, then go run ./examples/cli-device-login with the printed client id, -issuer http://127.0.0.1:8080 and -resource http://127.0.0.1:8080/api. Use -json to print tokens to stdout.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command server is a self-contained demo authorization server for cli-device-login: in-memory storage, the device grant and a bare sign-in page.
|
Command server is a self-contained demo authorization server for cli-device-login: in-memory storage, the device grant and a bare sign-in page. |