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.
-
Request
The user tries to access an application at the service provider.
-
Redirect
The service provider redirects the user to their identity provider.
-
Authenticate
The identity provider authenticates the user, for example with MFA.
-
Assert
The identity provider issues a signed assertion or token.
-
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.

Validating an assertion
Deployment models
Federation with third-party services can be deployed in three ways, compared in the following table.
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.
On-premises, cloud or hybrid?
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.
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.
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.