Repository navigation
fix: Link OAuth provider form to provider app setup pages - #1190
Merged
Merged
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
tofarr
marked this pull request as ready for review
November 5, 2026 07:55
…con on provider setup links Derive the provider host from the authorization or token URL. Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
|
🚀 Released in 1.87.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
Tested links in localhost - it makes things much better.
AGENT:
Why
Setting up the external OAuth app (client ID, secret, callback URL) for a provider is the painful part of configuring a login/git provider, and finding the right settings page in GitHub, GitLab, etc. is hard. The superadmin provider form already shows the Redirect URL to copy, but gives no pointer to where it goes. This adds a little direction, not full automation.
Summary
auth-provider-setup-links.ts)./settings/applications/new) and list (/settings/developers). GitLab: user and admin application lists. Forgejo: user applications. Bitbucket Cloud / Data Center: Atlassian docs. Azure DevOps: Microsoft Entra app registrations plus Microsoft Learn docs. Enterprise SSO: none.api.github.comon github.com). GitHub Enterprise Server and self-managed GitLab therefore link to their own host, and links update as you type. Placeholder hosts (YOUR_*,PLACEHOLDER) fall back to the brand default, or no link.Issue Number
How to Test
cd frontend && npm install && npx vitest run __tests__/components/features/super-admin/auth-provider-setup-links.test.ts __tests__/components/features/super-admin/super-admin-auth-provider-edit.test.tsxhttps://ghe.example.com/login/oauth/authorize) and confirm the links follow (each should read "... on " with an external-link icon).Automated checks (tests, typecheck, eslint, pre-commit) pass. I did not exercise it in a running browser.
Video/Screenshots
Screen.Recording.2026-11-05.at.7.53.30.AM.mov
Type
Notes
/admin/applications). Other paths redirect to login when unauthenticated, which confirms they exist./settings/installationsonly lists installed apps).translation.jsonalso shows one incidental reformatted line from rewriting the file.This PR was created by an AI agent (OpenHands) on behalf of the user.
@tofarr can click here to continue refining the PR
Enterprise server image for this PR: