0Pricing
Cryptology Academy · Lesson

Modern Identity: SAML, OIDC, and Hybrid Approaches

Explore how organizations are modernizing beyond Kerberos with SAML federation and OpenID Connect.

Modern Identity: SAML, OIDC, and Hybrid Approaches is a free Cryptology Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cryptology Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

SAML 2.0 for Enterprise SSO

Security Assertion Markup Language 2.0 (SAML) is an XML-based open standard for Single Sign-On in enterprise environments. Standardized in 2005, SAML allows an Identity Provider (IdP) to issue digitally signed XML assertions to Service Providers (SPs), enabling users to authenticate once and access multiple services without re-entering credentials.

SAML Identity Provider vs Service Provider

In SAML, the Identity Provider (IdP) is the authority that authenticates users and issues assertions. Examples: Okta, Microsoft Entra ID, PingFederate. The Service Provider (SP) is the application that relies on the IdP's assertion. Examples: Salesforce, Workday, ServiceNow. The SP trusts the IdP's signature to grant access.

SAML Assertion Security

SAML assertions must be digitally signed by the IdP using an RSA or EC key pair, allowing the SP to verify authenticity. Assertions can also be encrypted for confidentiality in transit. The SP must validate the signature, check the assertion's NotBefore and NotOnOrAfter timestamps, and verify the audience restriction to prevent replay attacks.

OIDC as Modern SAML Replacement

OpenID Connect (OIDC) is a modern identity layer built on OAuth 2.0 that serves the same SSO purpose as SAML but uses JSON and JWTs instead of XML. Published in 2014, OIDC is better suited for mobile apps, single-page applications, and REST APIs, while SAML remains dominant in traditional enterprise web applications.

OAuth 2.0 Under OIDC

OIDC extends OAuth 2.0 by adding an ID token (a JWT containing identity claims) to the OAuth 2.0 authorization flow. OAuth 2.0 handles authorization (delegated access to APIs), while OIDC adds authentication (verifying user identity). OIDC requires the openid scope and returns an ID token alongside the OAuth access token.

Entra ID as Hybrid Identity Provider

Microsoft Entra ID (formerly Azure Active Directory) is a cloud-native identity provider that supports both SAML and OIDC/OAuth 2.0 for federated SSO. It can synchronize with on-premises Active Directory via Entra Connect, providing hybrid identity management where both cloud and on-premises resources share a single identity directory.

AD FS as On-Premises Federation Bridge

Active Directory Federation Services (AD FS) is Microsoft's on-premises federation server that publishes SAML and WS-Federation endpoints for on-premises Active Directory. AD FS bridges legacy SAML-based applications with Active Directory credentials, and in hybrid deployments it federates with Entra ID to extend SSO to cloud applications.

SCIM for User Provisioning

System for Cross-domain Identity Management (SCIM) is a REST API standard for automating user provisioning and de-provisioning across identity systems and applications. When a new employee is added to Entra ID or Okta, SCIM automatically creates corresponding accounts in connected SaaS applications, and removes them when the employee leaves.

Conditional Access and MFA Integration

Modern identity providers implement conditional access policies that evaluate risk signals (device compliance, location, user behavior) before granting access. These policies can require step-up multi-factor authentication for sensitive resources. Combined with OIDC or SAML SSO, conditional access provides adaptive security without re-authentication friction.

Zero Trust Beyond Kerberos Perimeter

Zero Trust architecture treats network location as irrelevant to access decisions: no implicit trust is granted based on being inside a corporate network. Instead of Kerberos perimeter authentication, Zero Trust uses continuous identity verification, device health checks, and least-privilege access policies enforced at every resource access request via OIDC or SAML.

Choosing Between SAML and OIDC

Use SAML for legacy enterprise applications that were built before 2014 and already support SAML. Use OIDC for new applications, mobile apps, SPAs, and APIs. Both are supported by major IdPs, so the choice often depends on the application's existing support rather than security differences. OIDC is the preferred choice for all new development.

SAML vs OIDC Check

Which statement correctly describes a key difference between SAML and OIDC?

Lesson Recap: SAML, OIDC, and Hybrid Identity

SAML 2.0 provides XML-based SSO for traditional enterprise apps. OIDC adds identity to OAuth 2.0 using JWT tokens and is preferred for modern apps. Entra ID supports both as a hybrid cloud IdP. AD FS bridges on-premises AD to SAML-based apps. SCIM automates provisioning. Zero Trust replaces perimeter-based Kerberos with continuous, policy-driven identity verification.

Frequently asked questions

Is the “Modern Identity: SAML, OIDC, and Hybrid Approaches” lesson free?

Yes — the full text of “Modern Identity: SAML, OIDC, and Hybrid Approaches” is free to read here on the web, and the Cryptology Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cryptology Academy course, upgrade to CoddyKit PRO.

What will I learn in “Modern Identity: SAML, OIDC, and Hybrid Approaches”?

Explore how organizations are modernizing beyond Kerberos with SAML federation and OpenID Connect. You practise Cryptology Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cryptology Academy?

No prior experience is required. Cryptology Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Modern Identity: SAML, OIDC, and Hybrid Approaches” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cryptology Academy lesson?

Yes. Every Cryptology Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Kerberos Architecture and Ticket Flow
  2. Active Directory and Kerberos Integration
  3. Kerberos Attack Techniques: Kerberoasting and Golden Ticket
  4. Modern Identity: SAML, OIDC, and Hybrid Approaches
← Back to Cryptology Academy