@cloudflare/workers-auth@0.6.0
Minor Changes
-
#14064
a9e5abbThanks @petebacondarwin! - Add support for OAuth 2.0 Device Authorization Grant towrangler loginRun
wrangler login --deviceto authenticate without a local callback server. Useful in containers, remote SSH sessions, Codespaces, and any other environment wherelocalhost:8976is unreachable from your browser.The new flow:
- prints the verification URL and user code to the terminal,
- attempts to open the verification URL in your default browser automatically (suppressed via
--browser=false), - and polls the token endpoint until you approve the request (with a 5-minute hard cap).
The verification URL is supplied by the authorization server, so it is rejected unless it is an
httpsURL on the same auth domain the device code was requested from — it is never printed or opened otherwise.--callback-hostand--callback-portcannot be combined with--device, since this flow does not start a local callback server.
Patch Changes
- Updated dependencies [
b5c083b]:- @cloudflare/workers-utils@0.31.1