Repository navigation
[Documentation request] Authentication architecture suggestions #1494
Copy link
Copy link
Open
Labels
P3Nice to haves, rare edge casesNice to haves, rare edge casesdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestready for workHas enough information to startHas enough information to start
Milestone
Description
It would be great if the documentation website had a few pointers on authentication architecture choices.
Imagine you have an existing ASP.NET Core API project which already has its own AzureAD authentication + JWT Bearer authentication for development (with dotnet user-jwts). I think this is a common scenario for people wanting to add MCP functionality to their existing solution.
It would be great to read something about setting that up, and about the choices that can be made there:
- one project vs multiple projects:
- putting both the MCP and normal API endpoints in the same project. This adds some complexity regarding coexistence of authentication schemes. I see for MCP a different scheme is needed.
- factoring out the business logic into a common project that is referenced by a REST API project and a MCP server project
- one app registration vs multiple app registrations in Entra ID?
Searched:
- https://github.com/modelcontextprotocol/csharp-sdk/discussions?discussions_q=authentication only lists questions from 2025 (before v1.0 was released)
- https://www.google.com/search?q=adding+mcp+server+to+existing+asp.net+core+api+project yields no recent articles that cover coexisting authentication options on v1.0
- https://devblogs.microsoft.com/dotnet/release-v10-of-the-official-mcp-csharp-sdk/ has no info on cover coexisting authentication options
- https://github.com/microsoft/mcp-gateway seems to have a REST API (for management purposes) in parallel to a MCP endpoint, both with Entra ID integration. However, its setup is much more complex than the usecase explained above, which makes it difficult to use as an example to understand how to set it up.
- These two documentation pages might be helpful:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Nice to haves, rare edge casesNice to haves, rare edge casesdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestready for workHas enough information to startHas enough information to start
Activity
[-][Documentation request] Architecture suggestions[/-][+][Documentation request] Authentication architecture suggestions[/+]hansmbakker commentedon Apr 2, 2026
#968 might be related
jayaraman-venkatesan commentedon Apr 9, 2026
Thanks for sharing.
I'll try to spin up a couple of sample apps and contribute docs for it
hansmbakker commentedon Apr 18, 2026
#1052 could be addressed here as well
cc @stephentoub / @mikekistler
hansmbakker commentedon Oct 1, 2026
@anneheartrecord thank you for contributing #1801!
However, @jeffhandley @stephentoub / @mikekistler - it would still help me to have these architectural decision-making questions addressed: