Search code examples
itfoxtec-identity-saml2

ITfoxtec SAML Library Services.BindConfig -- error


I am using the ITfoxtec SAML2 Library and following the example from the site I see they have an extension method BindConfig however, in my use of the library I am getting an error IServicesCollection does not contain a definition for BindConfig I am using

using ITfoxtec.Identity.Saml2;

using ITfoxtec.Identity.Saml2.MvcCore;

using ITfoxtec.Identity.Saml2.MvcCore.Configuration;

using ITfoxtec.Identity.Saml2.Schemas.Metadata;

using ITfoxtec.Identity.Saml2.Util;

services.BindConfig<Saml2Configuration>(Configuration, "Saml2", (serviceProvider, saml2Configuration) =>
        {
            ......
         }

Is this related to the Binding error with .net 5.0 by any chance ?


Solution

  • The binding method read your Saml2 configuration in appsettings.json Maybe you are missing the configuration.