Is AddSamlMiddleware something we would use when building our own IdP using Identity Server?

Currently we use ComponentSpace as an SP via Identity Server by making it our only “external provider”. IS4 fires a Challenge and then SAML does its thing and sets a cookie.

Is the new middleware a replacement for this?


Thanks,
Tory

Hi Tory
When you call services.AddSamlMiddleware, you’re adding middleware that supports acting as a SAML identity provider.
This is an alternative to implementing an identity provider SAML controller in your application.
The SAML authentication handler you add by calling services.AddAuthentication().AddSaml, supports acting as a SAML service provider.
This is an alternative to implementing a service provider SAML controller in your application and ties in with the Microsoft authentication middleware used for authenticating to external providers.
For IdentityServer4, you should use the SAML authentication handler to support login using an external identity provider.
Please refer to the IdentityServer4 integration guide for more information.
https://www.componentspace.com/Forums/8569/IdentityServer4-Integration-Guide