Share via

ComponentSpace SAML 6.1.0 - "SAML configuration has not been specified" in ASP.NET Core

Jubin Shah 5 Reputation points
2026-04-18T06:26:20.0033333+00:00

Hi,

I am implementing SAML authentication using ComponentSpace.Saml2 (version 6.1.0) in an ASP.NET Core MVC application.

I am facing the following error:

"SAML configuration has not been specified"

"LocalServiceProvider configuration not specified"

In Program.cs I am using:

builder.Services.AddSaml(builder.Configuration.GetSection("SAML"));

In appsettings.json, I have configured the SAML section with:

  • Configurations array
  • Name: "SP"
  • ServiceProvider with EntityId and ACS URL
  • IdentityProviders with ADFS details

However, the configuration is not being detected at runtime.

What I tried:

  • Verified JSON structure
  • Cleaned and rebuilt the project
  • Ensured correct section name "SAML"

Expected behavior:

Application should redirect to ADFS login page

Actual behavior:

Application throws configuration error before redirect

Could you please help identify what might be missing or incorrectly configured?

Thanks.

Microsoft Security | Active Directory Federation Services
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.