This article is written by the team that builds Casdoor, so we are not neutral, and we say where we think Casdoor fits and where it doesn't. Facts about other products come from their own websites as of October 31, 2026 (listed under Sources) and may have changed. Spotted something out of date? Tell us.
A SAML identity provider (IdP) is the server that signs users in and sends signed assertions to the apps (service providers) that trust it. You need one when SaaS tools such as AWS, Google Workspace, Salesforce, Slack or GitLab should accept your company's logins, or when your own B2B app has to support SAML SSO.
There are two routes. Commercial IdPs such as Okta, Microsoft Entra ID, Auth0 and Google Workspace sell SAML as part of a wider product and charge per user or per monthly active user. Open-source IdPs such as Casdoor, Keycloak, authentik, Zitadel, Shibboleth and SimpleSAMLphp are free to self-host, but you run them yourself.
At a glance
| Option | Model | Hosting | SAML 2.0 | OIDC | Admin console | Best for |
|---|---|---|---|---|---|---|
| Okta | Commercial | SaaS | Yes | Yes | Yes | Enterprises that want a large app catalog and vendor support |
| Microsoft Entra ID | Commercial | SaaS | Yes | Yes | Yes | Microsoft-centric organizations |
| Auth0 | Commercial | SaaS | Yes, IdP mode | Yes | Yes | Product teams that want developer tooling |
| Google Workspace | Commercial | SaaS | Yes, SAML apps | Google APIs | Yes | Google-centric organizations |
| Casdoor | Apache-2.0 | Self-host or Cloud | Yes | Yes | Yes | One IdP for SaaS apps, your own apps and network devices |
| Keycloak | Apache-2.0 | Self-host | Yes | Yes | Yes | Large Java-friendly teams |
| authentik | MIT, enterprise features separate | Self-host | Yes | Yes | Yes | Homelabs and self-hosters |
| Zitadel | AGPL-3.0 | Self-host or Cloud | Yes | Yes | Yes | Multi-tenant B2B SaaS |
| Shibboleth IdP | Apache-2.0 | Self-host | Yes | OIDC OP plugin | No, XML configuration | Universities and research federations |
| SimpleSAMLphp | LGPL-2.1 | Self-host | Yes | OIDC module | Basic admin pages | PHP shops and SAML testing |
Commercial SAML identity providers
Okta is the enterprise default for a reason: a large catalog of pre-built app integrations, strong policy and lifecycle features, and a sales and support organization behind it. It is priced per user and usually sold through a quote, so it fits companies that already standardize on Okta for workforce identity.
Microsoft Entra ID (formerly Azure AD) is the IdP most Microsoft 365 customers already have. It supports SAML 2.0 for enterprise applications and OIDC for applications that use Microsoft identity. If your company runs Microsoft 365 and Windows, the SAML IdP is often already paid for; the trade-off is that the admin experience and licensing are built around Microsoft's plans.
Auth0 can act as a SAML identity provider as well as a SAML service provider to other IdPs. It is developer-friendly, priced by monthly active users, and common in product teams that also need social login, MFA and APIs. Enterprise SSO connections are an add-on beyond the included connections; see Auth0 pricing.
Google Workspace can act as a SAML IdP for third-party apps configured in the Google Admin console. It is a good fit if your company already runs on Google, but it is not a general-purpose IAM platform for customers or machine identities.
The common thread: you pay per user or per MAU, and SAML is one feature inside a larger suite. If you only need a SAML IdP for a handful of apps, that can be more than you need.
Open-source SAML identity providers
The six below are free to self-host. All of them are real SAML 2.0 IdPs with metadata, signed assertions and attribute mapping, but they differ a lot in what else they do and how much work they take to run.
Casdoor
Casdoor is a single Go binary with a web admin console. Each application can act as a SAML 2.0 IdP: Casdoor publishes metadata, signs assertions with the application's certificate, maps user attributes and supports single logout. The same users also sign in over OIDC, CAS, LDAP and RADIUS, so one server covers SaaS apps, your own apps, VPNs and older software.
It ships with sign-up and login pages, MFA (authenticator apps, SMS and email codes), passkeys, social login and syncers that import users from Active Directory, Entra ID, Google Workspace, Okta or Keycloak. If you would rather not run it, Casdoor Cloud is a dedicated instance from $6.67/month billed yearly ($9 month to month).
Trade-offs: a smaller community than Keycloak, and Casdoor Cloud does not have SOC 2 or ISO 27001 reports yet. See the SAML page for setup guides.
Keycloak
Keycloak is the default open-source answer: a CNCF project backed by Red Hat, with mature SAML and OIDC support, identity brokering and user federation from LDAP and Active Directory.
Trade-offs: it is a Java service with a large configuration surface, upgrades take planning, and there is no managed service from the project. See Casdoor vs Keycloak and Keycloak alternatives.
authentik
authentik is popular with self-hosters. Its SAML provider supports IdP- and SP-initiated logins, and login flows are designed visually. Outposts add LDAP, RADIUS and proxy authentication for apps that cannot do SSO.
Trade-offs: no hosted version, and enterprise features are licensed per user. See Casdoor vs authentik.
Zitadel
Zitadel is a Go identity platform designed for multi-tenant B2B SaaS, with organizations and delegated administration built in. It can act as a SAML IdP for your applications alongside OIDC.
Trade-offs: AGPL-3.0 since version 3, which some companies' legal teams avoid, and Zitadel Cloud is priced by daily active users. See Casdoor vs Zitadel and Zitadel pricing explained.
Shibboleth Identity Provider
Shibboleth is the IdP of the academic world: most research and education federations, such as InCommon and eduGAIN, were built around it. It has the deepest SAML feature set on this list, including federation metadata handling and fine-grained attribute release policies.
Trade-offs: it is a Java web application configured through XML files, with no admin console, and it expects an existing directory (usually LDAP or Active Directory) for users. Choose it if you are joining an academic federation; for anything else it is a lot of machinery.
SimpleSAMLphp
SimpleSAMLphp is a PHP library and application that can act as both SAML SP and IdP. It authenticates users against a configurable source, such as LDAP, a database or a static list, which also makes it a handy test IdP when you are adding SAML to your own app.
Trade-offs: configuration is in PHP files, there is no user management, sign-up or MFA of its own, and you deploy and patch it like any PHP application.
How to choose
- You already pay for Okta, Entra ID or Google Workspace and want vendor support: use the IdP you already have, if it covers the apps you need.
- You want developer tooling and a product-team workflow: Auth0.
- You want one IdP for SaaS apps, your own apps and network devices, and an easy way out of running it: Casdoor.
- You have Java expertise and want the most widely deployed open-source option: Keycloak.
- You are self-hosting for a homelab or small team and like visual flows: authentik.
- You are building multi-tenant B2B SaaS and AGPL is fine: Zitadel.
- You are a university joining a SAML federation: Shibboleth.
- You just need a SAML IdP to test your app against: SimpleSAMLphp, or a free Casdoor instance in Docker.
What you need to connect a SAML app
Usually the IdP's metadata URL (or its SSO URL, entity ID and signing certificate) on the SaaS side, and the app's ACS URL and entity ID on the IdP side, plus an attribute mapping for email and name. Most mistakes come from mismatched entity IDs, an expired signing certificate, or a clock skew large enough to invalidate the assertion.
FAQ
Is there a free SAML IdP I do not have to host? Most commercial IdPs offer a free developer tier, but SAML is often limited to paid plans. The free route is to self-host one of the open-source options above, or use a free trial of a managed instance.
Can I use one IdP for both SAML and OIDC apps? Yes. Casdoor, Keycloak, authentik, Zitadel, Okta, Entra ID and Auth0 all serve both from the same user accounts. Read SAML vs OIDC for when to use which.
Can Google Workspace act as a SAML IdP? Yes. Google Workspace supports custom SAML apps in the Admin console, so it can sign users in to third-party apps that trust Google as the IdP.
What is the difference between SAML and OIDC? SAML sends signed XML assertions; OIDC uses JSON Web Tokens and OAuth 2.0. SAML is common in enterprise SaaS and older applications; OIDC is common in modern web and mobile apps. See SAML vs OIDC.
Sources
- Casdoor on GitHub
- Casdoor docs: SAML
- Keycloak on GitHub
- authentik SAML provider
- authentik pricing
- Zitadel SAML endpoints
- Zitadel on GitHub
- Shibboleth Identity Provider
- SimpleSAMLphp as an identity provider
- SimpleSAMLphp on GitHub
- Okta pricing
- Microsoft Entra ID single sign-on
- Auth0 as a SAML identity provider
- Auth0 pricing
- Google Workspace custom SAML app
- Google Workspace pricing
Product names are trademarks of their respective owners.