An Owin middleware to create a SAML IdP, based on the Kentor.AuthServices
Install-Package SamlIdp.Owin
/metadata
- SAML metadata/logout
- SSO logout/authorize
- SAML authentication requests/artifact
- SAML artifact resolution
app.Map("/saml", saml =>
{
saml.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = "Cookies"
});
saml.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
{
Authority = "https://www.example.com",
ClientId = "example",
ClientSecret = "example123",
RedirectUri = "http://www.example.com/saml",
ResponseType = "code id_token token",
Scope = "openid",
SignInAsAuthenticationType = "Cookies"
});
var options = new SamlIdpOptions
{
AuthenticationType = OpenIdConnectAuthenticationDefaults.AuthenticationType,
SigningCertificate = Certificate.Get()
};
saml.UseSamlIdp(options);
});