Skip to content

fix(idp): replace hardcoded issuer with external URL in IDP router#96

Merged
hrntknr merged 1 commit intomainfrom
external-url-as-issuer
Dec 4, 2025
Merged

fix(idp): replace hardcoded issuer with external URL in IDP router#96
hrntknr merged 1 commit intomainfrom
external-url-as-issuer

Conversation

@hrntknr
Copy link
Copy Markdown
Member

@hrntknr hrntknr commented Dec 4, 2025

Summary

(Brief description of what this PR accomplishes)

Type of Change

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to our CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit

Related Issues

fix #95

Copilot AI review requested due to automatic review settings December 4, 2025 14:51
@hrntknr hrntknr merged commit a7dbccb into main Dec 4, 2025
7 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces a hardcoded issuer value with a configurable external URL in the IDP (Identity Provider) router to properly support OAuth/OIDC standards. The issuer field in OAuth/OIDC metadata must match the actual server URL to ensure token validation works correctly.

  • Removed the hardcoded Issuer constant ("mcp-oauth-proxy")
  • Updated all references to use the externalURL parameter passed to NewIDPRouter
  • Updated tests to reflect the new issuer value

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/idp/idp.go Removed hardcoded Issuer constant and replaced three usages with a.externalURL field
pkg/idp/idp_test.go Updated test setup to pass "http://localhost:8080" as external URL and updated assertion to expect this value

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

Hardcoded issuer value breaks Claude Connector auth

2 participants