cli-device-login

command
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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