This repository contains sample Service Provider (SP) and Identity Provider (IdP) implementations using the Rsk.Saml component with different IdentityServer-based stacks.
- Standalone SP samples using
Rsk.Samlfor ASP.NET Core - IdP samples using:
Duende.IdentityServerOpen.IdentityServerOpenIddict
- Examples for:
- SP-initiated SSO
- IdP-initiated SSO
- Multiple SAML schemes / multiple IdPs
- Dynamic provider scenarios
ServiceProvider/- standalone SP sample usingRsk.Saml- multiple SAML schemes
- per-scheme callback paths
- per-scheme metadata paths
- IdP-initiated SSO support
DuendeIdentityServer/DuendeIdP/- Duende IdentityServer as a SAML IdPDuendeIdentityServer/DuendeDynamicProviders/- Duende IdentityServer as SP with dynamic providersDuendeIdentityServer/SLO/SamlOidcSLO/- sample focused on SLO scenarios
OpenIdentityServer/idp/- Open.IdentityServer configured as a SAML IdPOpenIdentityServer/idpWithEf/- Open.IdentityServer IdP with EF-backed configurationOpenIdentityServer/idpWithIdpInitiated/- Open.IdentityServer IdP with IdP-initiated flow scenarioOpenIdentityServer/sp/- Open.IdentityServer-related SP sample
IdentityServer4/idp/IdentityServer4/idpWithEf/IdentityServer4/idpWithIdpInitiated/IdentityServer4/sp/
OpenIddict/OpenIddictIdP/- OpenIddict-based SAML IdP sample
- Rsk.Saml docs: https://docs.identityserver.com/saml2p/
- IdentityServer as SAML IdP quickstart: https://docs.identityserver.com/saml2p/quickstarts/identityServer/identityServerAsIdp/
- Product page / licensing: https://www.identityserver.com/products/saml2p
- Pick a sample folder and open its local
README.mdfirst (for sample-specific setup). - Add license values where required (
Licensee,LicenseKey). - Confirm certificate files used by that sample (
.cer/.pfx). - Start the selected sample project.
Example run command:
dotnet run --project .\ServiceProvider\ServiceProvider.csprojNote: launch URLs and runtime details differ by sample. Use each project README and launch settings as the source of truth.
For demo or production licensing, use the product page above or contact sales@identityserver.com.