Skip to content

CIMD#303

Open
josephdecock wants to merge 17 commits intomainfrom
jmdc/cimd
Open

CIMD#303
josephdecock wants to merge 17 commits intomainfrom
jmdc/cimd

Conversation

@josephdecock
Copy link
Member

@josephdecock josephdecock commented Mar 13, 2026

This adds a sample showing how to implement CIMD in IdentityServer to authenticate MCP clients like VS Code.

Apologies for the large number of files, but most of it is standard IdentityServer and a copy of the weather MCP server.

The interesting dozen or so CIMD-specific files are all in CIMD.IdentityServer/. Everything else is copied from McpDemo with namespace changes.

Copy link
Member

@maartenba maartenba left a comment

Choose a reason for hiding this comment

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

Looks solid!

Note to self: needs duplication into v8 samples folder for now.

@josephdecock josephdecock requested a review from a team March 15, 2026 15:35
CancellationToken ct)
{
// Merge default scopes into whatever the document already declares
var existing = context.Document.Scope?.Split(' ', StringSplitOptions.RemoveEmptyEntries) ?? [];
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels a little odd that a method named validate is modifying the contents of what it is being validating

ClientName = document.ClientName,
LogoUri = document.LogoUri?.ToString(),
ClientUri = document.ClientUri?.ToString(),
RedirectUris = document.RedirectUris?.Select(u => u.ToString()).ToList() ?? [],
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see that we're validating the RedirectUris from the document anywhere. Are there rules in the spec which require anything specific about them?

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.

3 participants