Skip to content

fix: default redirectUri matches Harper dev config (http://localhost:9926) - #41

Merged
heskew merged 1 commit into
mainfrom
fix/default-port-9926
Apr 18, 2026
Merged

fix: default redirectUri matches Harper dev config (http://localhost:9926)#41
heskew merged 1 commit into
mainfrom
fix/default-port-9926

Conversation

@heskew

@heskew heskew commented Apr 17, 2026

Copy link
Copy Markdown
Member

Summary

Plugin defaulted to https://localhost:9953/oauth/callback, but Harper v5 dev mode serves plain HTTP on port 9926 (see utility/install/installer.js:50HTTP_PORT: 9926, HTTP_SECUREPORT null by default in dev). Users booted Harper, saw 9926 HTTP, and got a redirect mismatch the first time they wired up an OAuth provider.

Changing the default to http://localhost:9926/oauth/callback so the out-of-the-box flow works. Users running with TLS can still override via redirectUri in config.

Changes

  • config.yaml default
  • src/lib/config.ts fallback in buildProviderConfig
  • Matching test assertions in test/lib/config.test.js
  • Test fixture redirectUri values in test/lib/OAuthProvider.test.js and test/lib/handlers.test.js for consistency

Test plan

  • npm test — 422 pass, 0 fail, 2 skip
  • bun test — 422 pass, 0 fail, 2 skip
  • npm run lint passes
  • Claude review passes

Closes #30

…9926)

Plugin defaulted to `https://localhost:9953/oauth/callback`, but
Harper v5 dev mode serves plain HTTP on port 9926 (see
utility/install/installer.js:50 `HTTP_PORT: 9926`; `HTTP_SECUREPORT`
is null by default in dev). Users booted Harper, saw 9926 HTTP, and
got a redirect mismatch the first time they tried OAuth.

Changing the default to `http://localhost:9926/oauth/callback` so the
out-of-the-box flow works. Users running with TLS can still override
to https + their own port via config.

Updated:
- config.yaml default
- src/lib/config.ts fallback
- matching test assertions (config.test.js)
- test fixture redirectUris (OAuthProvider, handlers) for consistency

Closes #30.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@claude

claude Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

No blockers found.

@heskew
heskew merged commit 0ae03e0 into main Apr 18, 2026
5 checks passed
@heskew
heskew deleted the fix/default-port-9926 branch April 18, 2026 02:52
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.

Change default from 9953 to 9926

1 participant