Skip to content

feat(resource-as/ema): initial conformance tests for Resource AS of EMA - #490

Draft
tnorimat wants to merge 1 commit into
modelcontextprotocol:mainfrom
Hitachi:ISSUE-470-EMA-ResAS-initial
Draft

tnorimat wants to merge 1 commit into
modelcontextprotocol:mainfrom
Hitachi:ISSUE-470-EMA-ResAS-initial

Conversation

@tnorimat

@tnorimat tnorimat commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

Described in #470

How Has This Been Tested?

Breaking Changes

Nothing

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Signed-off-by: Takashi Norimatsu <takashi.norimatsu.ws@hitachi.com>
@tnorimat
tnorimat marked this pull request as draft September 4, 2026 08:52
@tnorimat
tnorimat force-pushed the ISSUE-470-EMA-ResAS-initial branch from 954510e to cd79c4b Compare September 4, 2026 08:55
@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/@modelcontextprotocol/conformance@490

commit: cd79c4b

@tnorimat tnorimat changed the title feat: initial conformance tests for Resource AS of EMA feat(resource_as/ema/auth): initial conformance tests for Resource AS of EMA Sep 4, 2026
@jsachs

jsachs commented Nov 19, 2026

Copy link
Copy Markdown

I ran the Resource AS scenarios from this PR (at cd79c4b) against authentik's ID-JAG Resource Authorization Server work. 32 of 35 checks pass. There are a few places where the expected behavior seems to conflict with a spec:

1. Metadata discovery for issuers with a path.
ResourceServerMetadataScenario appends /.well-known/oauth-authorization-server to the issuer URL. For an issuer with a path component, RFC 8414 §3.1 inserts the well-known segment between the host and the path, and the MCP authorization spec's discovery section lists the URLs to try in order (RFC 8414 path insertion, OIDC path insertion, OIDC path appending). Is the
appended form intentional, or should this scenario follow the MCP discovery order, as support.ts partly does already?

2. invalid_target for an untrusted resource claim (resource-as-error-invalid-target-code).
RFC 8707 §2.1 defines invalid_target for the resource request parameter. Here the untrusted resource is a claim inside the assertion, and RFC 7523 §3.1 says that when the JWT isn't valid the error MUST be invalid_grant. Is there text in the EMA extension or the ID-JAG draft that overrides RFC 7523 §3.1 for this case? If not, should the check accept invalid_grant?

3. Unrecognised scope in the ID-JAG (resource-as-error-invalid-scope-status/-code).
The check requires 400 invalid_scope. RFC 6749 §3.3 lets an authorization server fully or partially ignore requested scope, provided the response includes the granted scope when it differs. Does the EMA extension or the ID-JAG draft require rejection here? If not, should a success response whose scope omits the unrecognised value also pass?

@tnorimat tnorimat changed the title feat(resource_as/ema/auth): initial conformance tests for Resource AS of EMA feat(resource-as/ema): initial conformance tests for Resource AS of EMA Dec 1, 2026

This branch has not been deployed

No deployments
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.

2 participants