Skip to content

Fix GitHub login redirect_uri on macOS - #5513

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/macos-github-login
Oct 13, 2026
Merged

Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/macos-github-login

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request addresses an issue with how the OAuth login URL is launched during the GitHub authentication process. The change ensures that the URL is correctly formatted to prevent issues with macOS re-escaping characters, which could corrupt the redirect_uri parameter.

Authentication flow fix:

  • Updated SignInAsync in GitHubAuthService.cs to use oauthLoginUrl.AbsoluteUri instead of ToString() when launching the OAuth login URL, preventing macOS from corrupting the redirect_uri with double-escaping.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change correctly preserves the encoded OAuth query without affecting other authentication behavior.

0 open findings

What changed in this PR

Fixes GitHub OAuth login on macOS by preserving URL escaping.

Changes:

  • Launches the OAuth URL using AbsoluteUri.
  • Documents why ToString() corrupts redirect_uri.
File Description
src/​UniGetUI.Avalonia/​Infrastructure/​GitHubAuthService.cs Preserves OAuth URL escaping when opening the browser.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@randy-but-a-ro randy-but-a-ro Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Pull request was approved automatically: the AI review is complete and all its review threads are resolved. 🎉

Integration Details
{
	"deliveryId": "60c5d240-c734-11f1-9bb3-a1a128780281",
	"headSha": "82e12dfe90c3e3874b019b44f3af2210ae87f4e6",
	"reviewer": "copilot-pull-request-reviewer[bot]"
}

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit 9569510 into main Oct 13, 2026
6 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the fix/macos-github-login branch October 13, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants