Hi All,
I have Asp.Net core 2.1 MVC application, and trying to implement Saml2.0 , i am using below code, but the "EntityId" is used by System.IdentityModel.dll is not loading. it is throwing me error
services.AddAuthentication()
.AddSaml2(options =>
{
options.SPOptions.EntityId = new EntityId("https://localhost:44349/Saml2");
options.IdentityProviders.Add(
new IdentityProvider(
new EntityId("http://localhost:59410//Metadata"), options.SPOptions)
{
LoadMetadata = true
});
options.SPOptions.ServiceCertificates.Add(new X509Certificate2("certificatename.cer"));
});
whenever i am running application in local, throws me error, is there any way to implement saml2.0 in asp.netcore 2.1 mvc ? kindly share me the link or solution. Appreciate your effort in advance.

Sr. MSCRM Constultant