From f0b41c92c4b79ef77b62a6a859c83f79f23228e0 Mon Sep 17 00:00:00 2001 From: Dessa Simpson Date: Thu, 29 May 2025 10:21:46 -0700 Subject: [PATCH] Prefer VerificationURIComplete if present In the OIDC Device Authorization Flow in command/oauth, present the user with VerificationURIComplete rather than VerificationURI if present, so that the user doesn't have to manually type the code when using an IdP that provides this feature. Fixes #1424 --- command/oauth/cmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/oauth/cmd.go b/command/oauth/cmd.go index 16761331a..443fbbfba 100644 --- a/command/oauth/cmd.go +++ b/command/oauth/cmd.go @@ -892,6 +892,9 @@ func (o *oauth) DoDeviceAuthorization() (*token, error) { } switch { + case idr.VerificationURIComplete != "": + // Prefer VerificationURIComplete if present for user convenience + idr.VerificationURI = idr.VerificationURIComplete case idr.VerificationURI != "": // do nothing case idr.VerificationURL != "":