Lesson 2 of 3 Authentication Methods

Single Sign-On and Federated Access

Users access many systems, and asking them to authenticate separately to each creates weak passwords and management overhead. This lesson explains single sign-on with Kerberos, ADFS and OpenID Connect, and federated access with SAML and OAuth 2.0.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain the benefits and risks of single sign-on.
  • Describe Kerberos, ADFS and OpenID Connect.
  • Distinguish SAML, OAuth 2.0 and OpenID Connect.
  • Describe how tokens and federation trust are secured.

Single sign-on

Single sign-on (SSO) lets a user authenticate once to a central identity provider and then access many applications without signing in again. The identity provider issues a ticket or token that applications trust.

SSO improves security in several ways: users remember one strong credential instead of many weak ones, MFA can be enforced in one place, and disabling one account removes access everywhere when someone leaves. Its main risk is that the central credential becomes a single point of compromise: if it is stolen, the attacker reaches every connected system. SSO must therefore be combined with strong MFA, monitoring of the identity provider and protection of its tokens. The identity provider is also a single point of failure for availability.

Scenario questions

Benefits and risks of SSO

Exam skills 2.1.2

Weigh the benefits and risks of single sign-on.

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

SSO technologies

Kerberos provides SSO within Windows Active Directory domains and many Unix environments. The user authenticates to the key distribution centre (KDC), which issues a ticket-granting ticket (TGT); the TGT is used to obtain service tickets for each application, without sending the password across the network. Kerberos requires synchronised clocks, because tickets have short lifetimes.

Active Directory Federation Services (ADFS) extends Active Directory identities beyond the internal network, issuing claims-based tokens (using SAML or WS-Federation) so that users can sign in to web and cloud applications and partner systems with their domain accounts. Many organisations now use cloud identity providers for the same purpose.

OpenID Connect (OIDC) is an identity layer on top of OAuth 2.0. The identity provider issues an ID token, a signed JSON Web Token (JWT) stating who the user is and how they authenticated. OIDC is widely used for web and mobile sign-in, including "sign in with" buttons.

The following diagram matches each identity need of a company to the federation or SSO standard that meets it.

Matching each need to a standard. Signing in to the SaaS HR system with corporate credentials and MFA is federated SSO, typically SAML 2.0 or OpenID Connect, with the corporate identity provider enforcing MFA. Letting the expenses app write receipts to employees' cloud storage without their passwords is delegated authorisation with OAuth 2.0.
The scenario is illustrative.
Match the pairs

SSO and federation technologies

Exam skills 2.1.2 · 2.1.4

Match each technology with its description.

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

Federated identity

Federation extends SSO across organisational boundaries. Two organisations agree to trust each other's identity assertions: the user's home organisation acts as the identity provider (IdP), and the application's owner acts as the service provider (SP) or relying party. A user of a partner company, or an employee using a SaaS application, signs in with home credentials, and access ends automatically when the home organisation disables the account.

Security Assertion Markup Language (SAML) 2.0 is the established standard for enterprise web SSO to SaaS applications. The IdP sends a digitally signed XML assertion containing the user's identity and attributes to the SP, which verifies the signature and grants access. OAuth 2.0 is an authorisation framework, not an authentication protocol: it lets a user grant an application limited access to resources on their behalf by issuing an access token with defined scopes, without giving the application the user's password. An example is allowing a scheduling application to read, but not change, a user's calendar.

The following comparison summarises the main standards.

SAML 2.0
PurposeAuthentication and attribute exchange for web SSO
Token formatSigned XML assertion
Typical useEnterprise SSO to SaaS applications
OAuth 2.0
PurposeDelegated authorisation
Token formatAccess token (often a JWT)
Typical useApps accessing APIs on a user's behalf
OpenID Connect
PurposeAuthentication on top of OAuth 2.0
Token formatSigned ID token (JWT) plus access token
Typical useModern web and mobile sign-in

Securing tokens and federation

Tokens are bearer credentials: whoever holds a valid token can use it. They must be short-lived, scoped to the minimum access needed, transmitted only over TLS, stored securely and revocable. Signatures on assertions and tokens must always be validated. Federation trust is configured deliberately, with certificates exchanged and monitored for expiry, and with attributes limited to what each service needs.

Worked example

Choosing a standard

A company wants employees to sign in to a new SaaS human resources system with their existing corporate credentials and MFA. Separately, it wants a mobile expenses app to upload receipts to employees' cloud storage without handling their passwords. Which standards fit?

Signing in to the SaaS system with corporate credentials is federated SSO, typically with SAML 2.0 or OpenID Connect, where the corporate identity provider enforces MFA. Letting the expenses app write to cloud storage on the user's behalf is delegated authorisation with OAuth 2.0, with a scope limited to uploading files.

Worked example

The SSO risk

After moving to SSO, an attacker phishes one employee's SSO password and accesses email, file storage and the finance system. The organisation had not enabled MFA. What does this show?

SSO concentrates risk: one credential opened every connected system. SSO must be paired with strong, preferably phishing-resistant MFA, conditional access based on device and location, and monitoring of identity provider sign-ins for anomalies such as impossible travel.

Check yourself

Why is OAuth 2.0 described as authorisation rather than authentication?

Show answer

It issues access tokens that let an application act on a user's behalf with limited scopes; it does not itself define how to verify who the user is, which OpenID Connect adds.

Exam Tips

Remember for the exam

  • OAuth 2.0 is authorisation; OpenID Connect adds authentication.
  • SAML uses signed XML assertions from an IdP to an SP.
  • SSO is a single point of compromise; always add MFA.