Skip to content

Commit a530743

Browse files
sharpninjaclaude
andcommitted
Fix QR code login URL missing /device path segment for OIDC+tunnel flow
The QR code encoded .../auth/ui{authorityPath} which points to realm metadata, not the device verification page. AuthConfigController builds verification_uri as .../auth/ui{authorityPath}/device, so align the QR URL to match so mobile scans land on the correct login endpoint. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4bfffed commit a530743

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/McpServer.Support.Mcp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ await pairingRenderer.RenderLoginPageAsync("Invalid username or password.").Conf
766766
var authority = oidc.Authority.TrimEnd('/');
767767
if (Uri.TryCreate(authority, UriKind.Absolute, out var authorityUri))
768768
{
769-
loginUrl = $"{baseUrl}/auth/ui{authorityUri.AbsolutePath}";
769+
loginUrl = $"{baseUrl}/auth/ui{authorityUri.AbsolutePath.TrimEnd('/')}/device";
770770
}
771771
else
772772
{

0 commit comments

Comments
 (0)