Federated identity management using Active Directory Federation Services
ComponentSpace SAML 6.1.0 - "SAML configuration has not been specified" in ASP.NET Core
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.