Lesson 1 of 2 Federation and Authentication Systems

Federated Identity Management

Federation lets an identity issued by one organisation be trusted by another. This lesson explains how federation works and the on-premises, cloud and hybrid deployment models.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how identity providers and service providers establish federation.
  • Compare on-premises, cloud and hybrid federation.

How federation works

In federated identity management (FIM), an identity provider (IdP) authenticates the user and issues an assertion or token about them. A service provider (SP), also called a relying party, trusts that assertion because of a prior trust relationship, usually established by exchanging metadata and signing certificates. The user signs in once with their home organisation and reaches partner and cloud services without separate accounts.

  1. Request

    The user tries to access an application at the service provider.

  2. Redirect

    The service provider redirects the user to their identity provider.

  3. Authenticate

    The identity provider authenticates the user, for example with MFA.

  4. Assert

    The identity provider issues a signed assertion or token.

  5. Grant

    The service provider validates the signature and grants access.

Federation reduces password sprawl, centralises authentication policy and lets one deprovisioning action remove access everywhere, but the IdP becomes critical: if it is compromised, every connected service is exposed.

The trust in federation is technical as well as contractual. When the service provider and the identity provider are first connected, they exchange metadata that includes the IdP's signing certificate and the addresses each side uses. From then on, the SP accepts an assertion only if it is signed with that certificate, is addressed to the SP, is within its short validity window and has not been used before. The SP never sees the user's password or second factor; it relies entirely on the IdP's statement that authentication happened. This is why the IdP's signing key is one of the most valuable secrets in the organisation: an attacker who steals it can forge assertions for any user to every connected service.

Federation also carries attributes about the user, such as email address, department or group memberships, which the SP may use for authorisation. A partner portal might grant administrator rights to any user whose assertion includes the group "partner-admins". The SP is therefore trusting the IdP not only to authenticate users correctly but also to manage those groups correctly, and agreements between federated organisations should say who is responsible for maintaining each attribute.

The following diagram shows what disabling a user at the identity provider removes, and what can remain.

Deprovisioning with federation. Disabling a user at the identity provider stops new sign-ins to every federated application at once. Long-lived sessions or tokens, and local accounts or API keys created inside applications, can remain; short sessions, token revocation and SCIM provisioning close those gaps.
SCIM is the System for Cross-domain Identity Management.
Select all that apply

Validating an assertion

Exam skills 5.2.5

Identify what a service provider checks before accepting a federation assertion.

Log in to try this activity Interactive activities are free with an account.

Deployment models

Federation with third-party services can be deployed in three ways, compared in the following table.

On-premises
Identity providerOrganisation's own federation servers
StrengthsFull control of identity data and policy
WeaknessesOrganisation runs and secures highly available servers
Cloud
Identity providerIdentity-as-a-service provider
StrengthsScales easily; prebuilt SaaS integrations; built-in risk detection
WeaknessesDependence on the provider; tenant administration is a prime target
Hybrid
Identity providerDirectory synchronised or federated to a cloud IdP
StrengthsSupports gradual migration and existing directories
WeaknessesComplexity; synchronisation servers are high-value targets

In hybrid models, authentication may happen in the cloud using synchronised password hashes, pass through to on-premises directories, or be federated back to on-premises servers. Whatever the model, administrative access to identity systems needs the strongest protection the organisation has.

Hybrid models are common because most organisations already have an on-premises directory when they start adopting cloud services.

Federation with third-party services also includes consumer-facing scenarios, such as letting customers sign in to a retailer's website with an account from a large social or technology provider. The retailer gains simpler registration but depends on the external provider's account security and availability, and must decide what level of assurance such identities provide before allowing high-risk actions.

Sort into groups

On-premises, cloud or hybrid?

Exam skills 5.3.1 · 5.3.2 · 5.3.3

Match each statement to the federation deployment model it describes.

Log in to try this activity Interactive activities are free with an account.
Worked example

Moving to hybrid identity

A company with a long-established on-premises directory starts adopting SaaS applications and does not want separate accounts in each. How does a hybrid identity model help, and what new risk does it create?

Rather than create separate accounts in each, it synchronises its directory users to a cloud identity provider and connects the SaaS applications to that provider. Employees keep one identity, and the HR-driven joiner and leaver process in the on-premises directory flows through to the cloud.

The synchronisation server becomes critical, because it can change identities in both environments, so it is protected with the same rigour as a domain controller.

Worked example

Deprovisioning with federation

A company federates its directory with 40 SaaS applications. An employee leaves. What is the most efficient way to remove their access, and what gap might remain?

Disabling the user at the identity provider immediately prevents new sign-ins to every federated application. Gaps can remain where applications keep long-lived sessions or tokens, or where local accounts or API keys were created inside the applications; these are closed by short session lifetimes, token revocation and automated deprovisioning through provisioning protocols such as SCIM.

Check yourself

In federation, which party authenticates the user?

Show answer

The identity provider; the service provider trusts its assertion.

Exam Tips

Remember for the exam

  • The IdP authenticates; the SP trusts the assertion.
  • Disabling a user at the IdP blocks all federated sign-ins.
  • Protect the IdP and its administration as tier-zero assets.