Skip to content

Fix UriFormatException in OAuth login URL construction#3432

Merged
rorychatt merged 6 commits intomainfrom
fix/oauth-uri-missing-slash
Apr 7, 2026
Merged

Fix UriFormatException in OAuth login URL construction#3432
rorychatt merged 6 commits intomainfrom
fix/oauth-uri-missing-slash

Conversation

@dcrjodle
Copy link
Copy Markdown
Collaborator

@dcrjodle dcrjodle commented Apr 7, 2026

Summary

  • Fix System.UriFormatException: Invalid port specified in OAuthFlowView.Build() when BaseUrl has no trailing slash
  • BaseUrl without BasePath returns http://host:port (no trailing /), so the interpolated string became http://localhost:5000ivy/auth/oauth-login — an invalid URI that UriBuilder can't parse
  • Added TrimEnd('/') + explicit / to ensure a valid URI in all cases

Test plan

  • Verify OAuth login flow works with BaseUrl that has no BasePath (e.g. http://localhost:5000)
  • Verify OAuth login flow works with BaseUrl that has a BasePath (trailing slash already present)

🤖 Generated with Claude Code

dcrjodle and others added 5 commits April 7, 2026 10:53
Add two new project entries to TeamIvyConfig for the Ivy Design System
(tokens, fonts, shared styles) and Ivy Web (Next.js web app) projects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…aml conflict

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
BaseUrl without BasePath returns "http://host:port" with no trailing
slash, causing the interpolated URI to be invalid (e.g.
"http://localhost:5000ivy/auth/oauth-login"). TrimEnd + explicit slash
ensures UriBuilder always receives a valid URI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dcrjodle dcrjodle requested a review from rorychatt April 7, 2026 10:45
The config.yaml additions (DesignSystem and Web project entries) were
merged in from the add-designsystem-web-tendril-config branch and don't
belong in this OAuth URI fix PR.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rorychatt rorychatt merged commit 56e9123 into main Apr 7, 2026
11 checks passed
@rorychatt rorychatt deleted the fix/oauth-uri-missing-slash branch April 7, 2026 11:11
@artem-ivy-ai
Copy link
Copy Markdown
Collaborator

Staging removed

Staging environment has been deleted for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants