Poll for the session minted by an approved device code (no auth)
Changed onPolls a device login: pending until the user approves, then returns the CLI session credential exactly once; denied or expired codes say so. RFC 8628-style polling: while the code is pending, answers 400 authorization_pending; faster than the returned interval, 429 slow_down; denied, 403 access_denied; expired or unknown, 410 expired_token. On the first poll after approval, mints and returns the one-time CLI session credential; every poll after that (the code was already collected) also answers expired_token, so the token is delivered to exactly one caller.
Requires no authentication.
Request
- Base URLhttps://api.openrelay.inc
- URLhttps://api.openrelay.inc/v1/cli-auth/token
- Authnone required
Request body
Response
Approved; here is the session
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
endpoint added
- info