Skip to content

SAML Endpoints

Added in 8.0 (prerelease)

When SAML 2.0 support is enabled via AddSaml(), IdentityServer registers the following SAML protocol endpoints under the /saml path prefix.

EndpointPathHTTP MethodsEnabled by Default
Metadata/saml/metadataGET✅ Yes
Sign-in/saml/signinGET, POST✅ Yes
Sign-in Callback/saml/signin_callbackGET, POST✅ Yes
IdP-initiated SSO/saml/idp-initiatedGET, POST❌ No (opt-in)
Logout/saml/logoutGET, POST✅ Yes
Logout Callback/saml/logout_callbackGET, POST✅ Yes

Path: /saml/metadata
Methods: GET

Returns the IdentityServer SAML 2.0 Identity Provider metadata document (an XML document). Service Providers use this document to discover the IdP’s signing certificates, supported NameID formats, and endpoint locations.

Share this URL with Service Providers during SP configuration so they can automatically import IdP settings.

Path: /saml/signin
Methods: GET, POST

The entry point for SP-initiated SSO. The Service Provider redirects the user to this endpoint with a SAML AuthnRequest message (encoded using the HTTP-Redirect or HTTP-POST binding).

IdentityServer validates the AuthnRequest, authenticates the user (redirecting to the login page if needed), and then continues to the Sign-in Callback endpoint.

Path: /saml/signin_callback
Methods: GET, POST

Processes the outcome of user authentication during SP-initiated SSO. After the user authenticates, this endpoint builds the SAML Response (containing the Assertion) and delivers it to the Service Provider’s Assertion Consumer Service (ACS) URL using the configured binding.

Path: /saml/idp-initiated
Methods: GET, POST
Enabled by default: No — requires explicit opt-in

Supports IdP-initiated SSO flows, where the IdP starts the authentication without receiving an AuthnRequest from the SP. The SP must have AllowIdpInitiated = true set in its SamlServiceProvider configuration.

To enable this endpoint:

Program.cs
builder.Services.AddIdentityServer(options =>
{
options.Endpoints.EnableSamlIdpInitiatedEndpoint = true;
});

Path: /saml/logout
Methods: GET, POST

Handles incoming SAML Single Logout (SLO) requests from Service Providers. The SP sends a SAML LogoutRequest message to this endpoint. IdentityServer processes the request, terminates the user’s IdentityServer session, and sends front-channel logout notifications to other registered SPs.

Path: /saml/logout_callback
Methods: GET, POST

Processes SAML LogoutResponse messages returned by Service Providers after they have processed a logout notification from IdentityServer. This endpoint completes the SAML SLO round-trip.

Endpoint paths can be customized via SamlOptions.UserInteraction:

Program.cs
builder.Services.AddIdentityServer(options =>
{
options.Saml.UserInteraction.Route = "/saml";
options.Saml.UserInteraction.Metadata = "/metadata";
options.Saml.UserInteraction.SignInPath = "/signin";
options.Saml.UserInteraction.SignInCallbackPath = "/signin_callback";
options.Saml.UserInteraction.IdpInitiatedPath = "/idp-initiated";
options.Saml.UserInteraction.SingleLogoutPath = "/logout";
options.Saml.UserInteraction.SingleLogoutCallbackPath = "/logout_callback";
});

See SAML Configuration for full path option documentation.