René's URL Explorer Experiment


Title: fix(api): use getRequestOrigin for the oauth callback redirect origin by glifocat · Pull Request #421 · onecli/onecli · GitHub

Open Graph Title: fix(api): use getRequestOrigin for the oauth callback redirect origin by glifocat · Pull Request #421 · onecli/onecli

X Title: fix(api): use getRequestOrigin for the oauth callback redirect origin by glifocat · Pull Request #421 · onecli/onecli

Description: Open-source credential gateway with a built-in vault. give your AI agents access to services without exposing keys. - fix(api): use getRequestOrigin for the oauth callback redirect origin by glifocat · Pull Request #421 · onecli/onecli

Open Graph Description: I have read the CONTRIBUTING.md file. YES What kind of change does this PR introduce? Bug fix. What is the current behavior? Fixes #420. The OAuth callback in packages/api/src/routes/apps.ts picks ...

X Description: I have read the CONTRIBUTING.md file. YES What kind of change does this PR introduce? Bug fix. What is the current behavior? Fixes #420. The OAuth callback in packages/api/src/routes/apps.ts picks ...

Opengraph URL: https://github.com/onecli/onecli/pull/421

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:bb331f65-891a-f517-7798-19622c062401
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8FE8:169995:254809E:31F5AFB:6A5D83AB
html-safe-noncedaa0b021f6a9f65d4b1914b7a1f72b8d0bc119914f9dd0653258560f16843f4e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkU4OjE2OTk5NToyNTQ4MDlFOjMxRjVBRkI6NkE1RDgzQUIiLCJ2aXNpdG9yX2lkIjoiMTM5MzU1NjA4MTQ2NTk4MzkxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac678d63bea83ac7ec75305c854ad29398db3b30f93b1183f8c55b1eb4a0c83675
hovercard-subject-tagpull_request:4016852745
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/onecli/onecli/421/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2167b721d0e8f974d756b9110aa4183f95f20938659bb2355c7351189f49076c/onecli/onecli/pull/421
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2167b721d0e8f974d756b9110aa4183f95f20938659bb2355c7351189f49076c/onecli/onecli/pull/421
og:image:altI have read the CONTRIBUTING.md file. YES What kind of change does this PR introduce? Bug fix. What is the current behavior? Fixes #420. The OAuth callback in packages/api/src/routes/apps.ts picks ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameglifocat
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/onecli/onecli git https://github.com/onecli/onecli.git
octolytics-dimension-user_id263660444
octolytics-dimension-user_loginonecli
octolytics-dimension-repository_id1175900220
octolytics-dimension-repository_nwoonecli/onecli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1175900220
octolytics-dimension-repository_network_root_nwoonecli/onecli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/onecli/onecli/pull/421#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fonecli%2Fonecli%2Fpull%2F421
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fonecli%2Fonecli%2Fpull%2F421
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=onecli%2Fonecli
Reloadhttps://github.com/onecli/onecli/pull/421
Reloadhttps://github.com/onecli/onecli/pull/421
Reloadhttps://github.com/onecli/onecli/pull/421
Please reload this pagehttps://github.com/onecli/onecli/pull/421
onecli https://github.com/onecli
oneclihttps://github.com/onecli/onecli
Notifications https://github.com/login?return_to=%2Fonecli%2Fonecli
Fork 144 https://github.com/login?return_to=%2Fonecli%2Fonecli
Star 2.5k https://github.com/login?return_to=%2Fonecli%2Fonecli
Code https://github.com/onecli/onecli
Issues 65 https://github.com/onecli/onecli/issues
Pull requests 24 https://github.com/onecli/onecli/pulls
Actions https://github.com/onecli/onecli/actions
Projects https://github.com/onecli/onecli/projects
Security and quality 0 https://github.com/onecli/onecli/security
Insights https://github.com/onecli/onecli/pulse
Code https://github.com/onecli/onecli
Issues https://github.com/onecli/onecli/issues
Pull requests https://github.com/onecli/onecli/pulls
Actions https://github.com/onecli/onecli/actions
Projects https://github.com/onecli/onecli/projects
Security and quality https://github.com/onecli/onecli/security
Insights https://github.com/onecli/onecli/pulse
glifocathttps://github.com/glifocat
onecli:mainhttps://github.com/onecli/onecli/tree/main
glifocat:fix/oauth-callback-app-url-fallbackhttps://github.com/glifocat/onecli-glifocat/tree/fix/oauth-callback-app-url-fallback
Conversationhttps://github.com/onecli/onecli/pull/421
Commits2 (2)https://github.com/onecli/onecli/pull/421/commits
Checkshttps://github.com/onecli/onecli/pull/421/checks
Files changedhttps://github.com/onecli/onecli/pull/421/files
fix(api): use getRequestOrigin for the oauth callback redirect originhttps://github.com/onecli/onecli/pull/421#top
glifocathttps://github.com/glifocat
onecli:mainhttps://github.com/onecli/onecli/tree/main
glifocat:fix/oauth-callback-app-url-fallbackhttps://github.com/glifocat/onecli-glifocat/tree/fix/oauth-callback-app-url-fallback
https://github.com/glifocat
glifocathttps://github.com/glifocat
Jul 8, 2026https://github.com/onecli/onecli/pull/421#issue-4840272438
Please reload this pagehttps://github.com/onecli/onecli/pull/421
CONTRIBUTING.mdhttps://github.com/onecli/onecli/blob/main/CONTRIBUTING.md
#420https://github.com/onecli/onecli/issues/420
#420https://github.com/onecli/onecli/issues/420
Please reload this pagehttps://github.com/onecli/onecli/pull/421
https://github.com/glifocat
glifocathttps://github.com/glifocat
July 8, 2026 19:49https://github.com/onecli/onecli/pull/421#event-27733568633
https://github.com/glifocat
glifocathttps://github.com/glifocat
Jul 18, 2026https://github.com/onecli/onecli/pull/421#issuecomment-5011426563
#430https://github.com/onecli/onecli/pull/430
#181https://github.com/onecli/onecli/issues/181
Please reload this pagehttps://github.com/onecli/onecli/pull/421
https://github.com/glifocat
glifocathttps://github.com/glifocat
force-pushedhttps://github.com/onecli/onecli/compare/80d41ba9b0879e12f9cb9a0647d784a24dc7fa4c..b017903e78fe731c6ac7861e9a076460161907d1
80d41bahttps://github.com/onecli/onecli/commit/80d41ba9b0879e12f9cb9a0647d784a24dc7fa4c
b017903https://github.com/onecli/onecli/commit/b017903e78fe731c6ac7861e9a076460161907d1
Compare https://github.com/onecli/onecli/compare/80d41ba9b0879e12f9cb9a0647d784a24dc7fa4c..b017903e78fe731c6ac7861e9a076460161907d1
July 18, 2026 13:33https://github.com/onecli/onecli/pull/421#event-28159419106
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Jul 18, 2026https://github.com/onecli/onecli/pull/421#issuecomment-5011456580
Please reload this pagehttps://github.com/onecli/onecli/pull/421
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant Browser participant OAuthProvider participant CallbackRoute as /:provider/callback participant getRequestOrigin Browser->>OAuthProvider: Initiates OAuth flow OAuthProvider->>CallbackRoute: GET /v1/apps/:provider/callback CallbackRoute->>getRequestOrigin: getRequestOrigin(c.req.raw) alt APP_URL is set getRequestOrigin-->>CallbackRoute: configured APP_URL (trailing slash stripped) else APP_URL is unset, X-Forwarded-Host present getRequestOrigin-->>CallbackRoute: proto://forwarded-host else APP_URL is unset, Host header present getRequestOrigin-->>CallbackRoute: proto://host else fallback getRequestOrigin-->>CallbackRoute: getSelfUrl() end CallbackRoute->>CallbackRoute: "appOrigin = apiOrigin" CallbackRoute-->>Browser: "302 → appOrigin + /app-connect/:provider?status=…" Loading https://github.com/onecli/onecli/pull/421#gh-light-mode-only
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant Browser participant OAuthProvider participant CallbackRoute as /:provider/callback participant getRequestOrigin Browser->>OAuthProvider: Initiates OAuth flow OAuthProvider->>CallbackRoute: GET /v1/apps/:provider/callback CallbackRoute->>getRequestOrigin: getRequestOrigin(c.req.raw) alt APP_URL is set getRequestOrigin-->>CallbackRoute: configured APP_URL (trailing slash stripped) else APP_URL is unset, X-Forwarded-Host present getRequestOrigin-->>CallbackRoute: proto://forwarded-host else APP_URL is unset, Host header present getRequestOrigin-->>CallbackRoute: proto://host else fallback getRequestOrigin-->>CallbackRoute: getSelfUrl() end CallbackRoute->>CallbackRoute: "appOrigin = apiOrigin" CallbackRoute-->>Browser: "302 → appOrigin + /app-connect/:provider?status=…" Loading https://github.com/onecli/onecli/pull/421#gh-dark-mode-only
"test(api): callback origin regression te..."https://github.com/onecli/onecli/commit/75bd42201b28f75e04fc39e4aa2b27f1e1713d83
Re-trigger Greptilehttps://app.greptile.com/api/retrigger?id=45285675
Please reload this pagehttps://github.com/onecli/onecli/pull/421
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Jul 18, 2026 https://github.com/onecli/onecli/pull/421#pullrequestreview-4728593945
View reviewed changes https://github.com/onecli/onecli/pull/421/files
packages/api/src/routes/apps.tshttps://github.com/onecli/onecli/pull/421/files#diff-b6da9e9602c26fdded5aa0789285fa4c1256a479cccff454e22e02518a908d10
Please reload this pagehttps://github.com/onecli/onecli/pull/421
glifocathttps://github.com/glifocat
July 18, 2026 13:38https://github.com/onecli/onecli/pull/421#commits-pushed-cde3f74
https://github.com/glifocat
fix(api): use getRequestOrigin for the oauth callback redirect originhttps://github.com/onecli/onecli/pull/421/commits/cde3f743af9e0cbcaa23eb974b98507b3a8d5bc3
cde3f74https://github.com/onecli/onecli/pull/421/commits/cde3f743af9e0cbcaa23eb974b98507b3a8d5bc3
https://github.com/glifocat
test(api): callback origin regression tests for APP_URL fallbackhttps://github.com/onecli/onecli/pull/421/commits/75bd42201b28f75e04fc39e4aa2b27f1e1713d83
75bd422https://github.com/onecli/onecli/pull/421/commits/75bd42201b28f75e04fc39e4aa2b27f1e1713d83
https://github.com/glifocat
glifocathttps://github.com/glifocat
force-pushedhttps://github.com/onecli/onecli/compare/b017903e78fe731c6ac7861e9a076460161907d1..75bd42201b28f75e04fc39e4aa2b27f1e1713d83
b017903https://github.com/onecli/onecli/commit/b017903e78fe731c6ac7861e9a076460161907d1
75bd422https://github.com/onecli/onecli/commit/75bd42201b28f75e04fc39e4aa2b27f1e1713d83
Compare https://github.com/onecli/onecli/compare/b017903e78fe731c6ac7861e9a076460161907d1..75bd42201b28f75e04fc39e4aa2b27f1e1713d83
July 18, 2026 13:39https://github.com/onecli/onecli/pull/421#event-28159510736
https://github.com/glifocat
glifocathttps://github.com/glifocat
Jul 18, 2026https://github.com/onecli/onecli/pull/421#event-28159602714
https://github.co/hiddenchars
https://github.com/onecli/onecli/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fonecli%2Fonecli%2Fpull%2F421
https://github.com/apps/greptile-apps
greptile-apps[bot] https://github.com/apps/greptile-apps
https://github.com/onecli/onecli/pull/421/files/b017903e78fe731c6ac7861e9a076460161907d1
OAuth callback always redirects to localhost:10254 when APP_URL is not set (the fallback never runs) https://github.com/onecli/onecli/issues/420
Please reload this pagehttps://github.com/onecli/onecli/pull/421
https://github.com/glifocat
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.