Regarding the compile time errors, we made some minor changes to the options to increase the flexibility and for naming consistency. Instead of a string, the PartnerName is a delegate that returns a string. The ...Url options have been renamed to ...Path. For example: services.AddAuthentication().AddSaml(options => { options.PartnerName = () => Configuration["PartnerName"]; options.AssertionConsumerServicePath = Configuration["AssertionConsumerServicePath"]; options.SingleLogoutServicePath = Configuration["SingleLogoutServicePath"]; });
Regarding the dependency injection related exception, we recently changed some singletons to transients. These are documented in our Developer Guide under the Dependency Injection and Third-Party IoC Containers section. https://www.componentspace.com/Forums/8235/Developer-GuideUnless you're specifying different implementations for the interfaces, the standard setup where you call services.AddSaml should work. If there's still an issue, please let us know.
Regards ComponentSpace Development
|