What Is Single Sign-On (SSO)?
Single Sign-On (SSO) is a digital authentication process for online services and applications that allows users to access multiple systems using a single set of credentials. It establishes a single login session that can be used across connected services. This simplifies access management for users and centralizes security controls for organizations, though it also concentrates authentication risk at the identity provider.
The U.S. National Institute of Standards and Technology (NIST) describes SSO within digital identity frameworks as a mechanism that enables access to multiple services without requiring separate authentication for each one (NIST SP 800-63-4). This initial authentication event is often referred to as an SSO login.
SSO is one component of broader identity and access management (IAM) frameworks, focused specifically on streamlining authentication across systems.
SSO vs. Traditional Login: Key Differences
Traditional authentication requires users to log in to each application separately. This creates friction and contributes to “password fatigue,” increasing the likelihood of weak passwords or insecure storage practices.
In contrast, Single Sign-On (SSO) allows one authentication event to provide access across multiple applications.
|
Aspect |
Traditional Login (per application) |
Single Sign-On (SSO) |
|
Authentication point |
Each application authenticates the user separately |
A central identity provider authenticates the user; applications accept the resulting token |
|
Number of credentials |
Multiple usernames and passwords |
Single credential set authenticated at the identity provider |
|
Login experience |
Users log in to each application separately |
One authentication per session covers connected applications |
|
Password fatigue |
High, due to many credentials |
Reduced, single primary credential |
|
Security risk profile |
Multiple attack surfaces; password reuse common across systems |
Risk concentrated at the identity provider; stronger controls possible but failures cascade |
|
Where access is controlled |
Managed per application |
Managed centrally at the identity provider |
How Does Single Sign-On Work?
Single Sign-On works by delegating authentication to a central identity provider that verifies a user's identity and enables access across connected applications.
In this model, the identity provider (IdP) authenticates the user, while service providers (SPs)—the applications being accessed—trust that authentication and determine what the user is allowed to do.
The SSO Authentication Flow
- User attempts to access an application (Service Provider)
The user opens an application that requires authentication. - The application redirects the user to the Identity Provider (IdP)
The service provider redirects the request to the IdP. In IdP-initiated SSO, the user starts at the IdP. - The user authenticates with the Identity Provider
The user enters credentials and completes multi-factor authentication (MFA), if required. - The Identity Provider issues an authentication token
After successful authentication, the IdP generates an authentication token (such as a Security Assertion Markup Language (SAML) assertion or JSON Web Token (JWT), which is used to prove the user’s identity to the application. - The token is returned to the Service Provider
The application validates the token signature, confirming it was issued by the trusted IdP. - The Service Provider grants access and creates a session
The application grants access and establishes a session. - The IdP session enables access to other connected applications
The IdP reuses the existing session to authenticate the user to additional applications without requiring another login.
The Role of Identity Providers (IdP) and Service Providers (SP)
In Single Sign-On (SSO), two roles manage authentication and access: the identity provider (IdP) and the service provider (SP).
The identity provider (IdP) verifies the user’s identity and issues a trusted authentication response. Examples include platforms such as Microsoft Entra ID or Okta.
The service provider (SP) is the application the user wants to access. It relies on the IdP’s authentication to grant access, rather than validating credentials directly.
This model is based on a trust relationship: service providers are configured to accept authentication data from a specific identity provider, typically by validating signed tokens or assertions exchanged through standard protocols.
For example, an organization using Microsoft Entra ID as its IdP would configure Salesforce as an SP by exchanging metadata: Salesforce learns to trust Entra ID's signing certificate, and Entra ID learns to issue assertions in the format Salesforce expects.
Authentication Tokens and Sessions in SSO
Authentication tokens contain structured data, called claims, that identify the user. These claims typically include values such as a user ID, email address, and roles or group memberships. Tokens are time-bound and expire after a defined period to limit misuse.
Sessions complement tokens by maintaining the user's authenticated state with each service provider. Session lifetime management is a meaningful security consideration: longer sessions reduce login friction but increase the exposure window if a device is compromised or a session cookie is stolen. Most enterprise deployments balance the two by setting short token lifetimes with refresh mechanisms, while session cookies use secure attributes such as HttpOnly, Secure, and SameSite to limit theft.
SSO implementations use different token formats depending on the protocol. SAML uses XML-based assertions, while OpenID Connect uses JSON Web Tokens (JWTs).
SSO Protocols: SAML, OAuth, and OpenID Connect
Single Sign-On (SSO) refers to the outcome of logging in once to access multiple systems, while protocols such as SAML, OAuth 2.0, and OpenID Connect (OIDC) are the mechanisms used to implement that behavior.
A common point of confusion is the relationship between SAML and SSO. SAML is not the same as SSO; it is one of several protocols that enable SSO by allowing identity information to be securely exchanged between an identity provider and a service provider.
Each protocol serves a different purpose, though they are often used together — OpenID Connect, for example, is built on top of OAuth 2.0.
|
Protocol |
Primary Use |
Data Format |
Best For |
|
SAML 2.0 |
Authentication and identity federation |
XML-based assertions |
Enterprise web applications, legacy systems, corporate SSO |
|
OAuth 2.0 |
Authorization (delegated access to APIs) |
Token-based (opaque or structured tokens) |
API access and delegated permissions (e.g., "allow this app to read your calendar") |
|
OpenID Connect (OIDC) |
Authentication layer built on OAuth 2.0 |
JSON Web Tokens (JWT) |
Modern web apps, mobile apps, cloud-native services |
SAML 2.0 Explained
SAML (Security Assertion Markup Language) 2.0 is an XML-based open standard used to exchange authentication and authorization data between an identity provider (IdP) and a service provider (SP).
At the core of SAML is the assertion, a structured message that contains identity and attribute information about the user. Service providers validate the assertion’s digital signature to confirm it was issued by a trusted IdP.
SAML supports two primary flows: SP-initiated and IdP-initiated. In SP-initiated SSO, the authentication process begins when a user accesses an application. In IdP-initiated SSO, the user authenticates at the identity provider first, often through an SSO portal. SP-initiated flows are generally preferred for security, while IdP-initiated flows require safeguards against unsolicited assertions.
SAML is widely used in enterprise environments, particularly for web applications and systems that require centralized identity management and interoperability.
OAuth 2.0 and OpenID Connect (OIDC)
OAuth 2.0 is an authorization framework that allows applications to access resources on behalf of a user without exposing their credentials. It uses access tokens to define what an application is permitted to do. However, OAuth 2.0 does not verify user identity on its own.
OpenID Connect (OIDC) builds on OAuth 2.0 by adding an identity layer. It introduces an ID token that allows applications to verify the user’s identity and support authentication scenarios such as Single Sign-On.
OIDC uses JSON Web Tokens (JWTs), defined by IETF RFC 7519, as the format for the ID token - the structure that carries identity information about the authenticated user.
OAuth 2.0 and OIDC are widely used in modern application environments, including mobile applications, single-page web apps, and cloud-native systems that rely on APIs and microservices.
Kerberos-Based SSO
Kerberos is a network authentication protocol commonly used in on-premises enterprise environments, particularly with Microsoft Active Directory in Windows domains.
Instead of transmitting passwords, Kerberos uses encrypted tickets to authenticate users. When a user logs in, the system issues a Ticket-Granting Ticket (TGT), which is used to request access to additional services within the network.
What is Web SSO?
Web SSO refers to Single Sign-On implemented in web browsers. It relies on browser-based mechanisms such as HTTP redirects and cookies to exchange authentication data between systems.
Unlike desktop or native-application SSO, all authentication occurs through the browser using standard web protocols. Common examples include "Sign in with Google" or "Sign in with Microsoft."
Web SSO is typically implemented using SAML or OpenID Connect (OIDC). Because it depends on browser sessions and cookies, it introduces specific security considerations, including cookie protection and defenses against cross-site attacks.
Why Is SSO Important? Benefits of Single Sign-On
SSO is important because it improves both security and usability. It reduces password-related risks, simplifies access management, and allows organizations to enforce consistent security controls across applications.
SSO and User Experience
In traditional environments, users must manage multiple credentials, leading to password fatigue, frequent login interruptions, and reduced productivity.
SSO reduces this friction, allowing users to spend less time managing credentials and more time on their work—particularly in environments where organizations deploy large numbers of applications
SSO and Organizational Efficiency
SSO also improves organizational efficiency by simplifying how access is managed. Administrators can control user identities, permissions, and authentication policies from a central system rather than configuring each application separately.
User provisioning and deprovisioning can be automated, often using standards such as System for Cross-domain Identity Management (SCIM) protocol. When a user joins or leaves an organization, access to connected applications can be granted or revoked centrally.
SSO can reduce operational overhead by lowering the volume of password reset requests, easing the burden on IT teams while improving access control across systems.
SSO Security Considerations and Risks
SSO changes how authentication risk is managed by concentrating access through a single identity provider. While this reduces password sprawl and improves visibility, it also increases the impact of a compromise, making the identity layer a critical security control.
A common concern is the “one key for all doors” problem: if an attacker gains control of the identity provider or a valid authentication session, they may gain access to every connected application. This makes the identity layer a prime target for attacks such as credential stuffing, phishing, token theft, and session hijacking.
Multi-factor authentication (MFA) strengthens authentication by adding additional verification factors. When combined with controls such as short token lifetimes and anomaly detection, SSO can reduce overall risk; without them, it can amplify the impact of credential compromise.
SSO as a Single Point of Failure
The identity provider (IdP) becomes a critical dependency in SSO environments. If the IdP is compromised, misconfigured, or unavailable, access to all connected applications can be affected.
Attackers often target identity providers because of this expanded impact: a successful compromise can grant access to multiple systems at once. In July 2023, Microsoft disclosed that a threat actor (Storm-0558) obtained a signing key and used it to forge authentication tokens, gaining access to Exchange Online accounts across multiple organizations. A subsequent U.S. Cyber Safety Review Board investigation found the intrusion was preventable and highlighted weaknesses in centralized identity infrastructure.
Availability is also a risk. If the identity provider goes down, users may be unable to access critical applications, even if those applications remain operational.
To mitigate these risks, organizations should implement redundancy and failover at the identity layer, use geographically distributed infrastructure, and define “break-glass” access accounts to maintain limited access during outages.
SSO and MFA
Multi-factor authentication (MFA) is one of the most effective controls for securing SSO environments. Enforcing MFA at the identity provider significantly reduces the risk of credential-based attacks such as password reuse and credential stuffing. For protection against modern phishing, phishing-resistant methods such as FIDO2 security keys or passkeys provide stronger defense than codes or push notifications. NIST SP 800-63B-4 requires phishing-resistant authenticators for federated authentication at Assurance Level 2 (AAL2) or above.
SSO and MFA are designed to work together. MFA strengthens authentication at the identity provider, allowing organizations to enforce consistent security policies across all connected applications.
In high-security environments, SSO without MFA is generally considered insufficient. Additional authentication factors are essential to protect access to sensitive systems and data.
Token Security and Session Management
Authentication tokens and sessions are common targets in SSO environments. Attackers may attempt to steal them through techniques such as cross-site scripting (XSS), man-in-the-middle attacks, session cookie theft, and cross-site request forgery (CSRF).
To reduce these risks, organizations should enforce short token lifetimes, require HTTPS for authentication traffic, and validate tokens on the service provider side.
In browser-based SSO, secure session management is critical. Applications should use cookie protections such as HttpOnly (preventing JavaScript access), Secure (requiring HTTPS), and SameSite (limiting cross-site requests) to reduce the risk of session theft. Additional controls, such as binding sessions to devices or monitoring for anomalous behavior, can further limit session abuse.
SSO Use Cases: Enterprise, Cloud, and Consumer
SSO is implemented across enterprise, cloud, and consumer environments. While the core concept is consistent, implementations vary depending on infrastructure, application types, and security requirements.
Enterprise SSO (On-Premise and Hybrid)
In enterprise environments, SSO is commonly implemented within on-premise networks using directory services and domain-based authentication. Kerberos-based Windows Integrated Authentication allows users to access internal systems using their domain account, which serves as their primary credential.
Active Directory Federation Services (ADFS) is often used to extend this model beyond the internal network, enabling on-premise identities to be trusted by external or web-based applications. Many organizations are transitioning toward cloud-based identity providers as part of modernization efforts.
Enterprise SSO is increasingly deployed in hybrid environments, where on-premise directories integrate with cloud identity providers. In these setups, user accounts are synchronized and authentication policies are enforced consistently across both internal systems and cloud services.
Cloud and SaaS SSO
In cloud and SaaS environments, SSO is provided by a cloud-based identity provider that integrates with applications using protocols such as SAML or OpenID Connect. These providers offer pre-built connectors that simplify application integration and often support user provisioning through standards such as SCIM.
An SSO portal, or dashboard, presents the applications a user is authorized to access in a single interface. From this portal, users can launch applications while administrators manage access and authentication policies across services.
Consumer-Facing SSO (Social Login)
Consumer-facing SSO is commonly implemented through social login options such as "Sign in with Google" or "Sign in with Apple." These allow users to authenticate using an existing identity instead of creating new credentials.
At the protocol level, consumer SSO typically relies on OpenID Connect (OIDC), built on OAuth 2.0, to authenticate users and share identity data with applications.
Unlike enterprise SSO, consumer SSO emphasizes user consent, privacy, and data minimization. Identity data is scoped and approved by the user, and authentication is tied to individual consumer accounts. The trade-off is that the security of the user’s identity provider account becomes a critical dependency—if it is compromised, all connected services may be exposed.
How to Implement SSO: Key Steps and Consideration
Implementing SSO involves selecting an identity provider, integrating applications and directories, and validating security and availability before deployment.
- Select an identity provider (IdP). Choose an IdP that integrates with your user directories and supports required protocols.
- Integrate user directories. Connect the IdP to systems such as LDAP, Active Directory, or cloud directories to centralize identity data.
- Map applications for SSO integration. Configure trust relationships between the IdP and each application.
- Choose authentication protocols. Use SAML for enterprise web applications and OpenID Connect (OIDC) for modern web, mobile, and API-based systems.
- Test authentication flows and failover. Validate login flows, MFA enforcement, and recovery scenarios.
- Roll out in phases. Start with a limited user group, then expand gradually to reduce operational risk.
Implementation effort increases with application count, legacy dependencies, and hybrid or multi-cloud environments.
Common SSO Implementation Mistakes and How to Avoid Them
|
Common Mistake |
How to Avoid It |
|
Not enforcing MFA at the identity provider. The IdP becomes a single password away from full compromise. |
Enforce MFA at the IdP for all users, using phishing-resistant methods (FIDO2 keys or passkeys) where possible. |
|
Overly long session lifetimes. Longer sessions increase exposure after compromise. |
Use short token lifetimes and enforce session expiration. Require re-authentication for sensitive actions. |
|
Improper logout and session termination. Logging out of one application may leave active sessions across connected services. |
Implement global logout where supported and distinguish between local and global session termination. |
|
Lack of visibility into connected applications. Unmonitored integrations create shadow IT risks. |
Regularly audit IdP-integrated applications and remove unused or unauthorized connections. |
|
Inadequate incident response planning for IdP compromise. Many organizations plan for application breaches but not for identity provider compromise, despite its broader impact. |
Define and test incident response procedures for IdP compromise, including credential revocation, session invalidation, and emergency access. |
|
Misconfigured SAML or OIDC integrations. Weak validation or permissive settings can enable authentication bypass. |
Follow standards-based configuration guidance, validate signatures strictly, and test integrations for misconfigurations. |
|
No break-glass or fallback access for IdP downtime. Users may be locked out of critical systems during outages. |
Define and test break-glass access mechanisms that provide limited, auditable access during IdP outages. |
Choosing an Identity Provider
Selecting an identity provider (IdP) is a key decision in an SSO deployment.
Key evaluation criteria include:
- Directory integration (LDAP, Active Directory)
- Protocol support (SAML 2.0, OpenID Connect, OAuth 2.0)
- MFA and authentication policy capabilities
- Application catalog size and integration flexibility
- Compliance certifications (e.g., SOC 2, ISO 27001, HIPAA) and audit support
- Availability guarantees, redundancy, and SLAs
Total cost of ownership should account for licensing, implementation, ongoing management, and training. These costs vary significantly between on-premises and cloud-based IdP deployments.
SSO and Zero Trust Architecture
In a zero trust architecture, SSO serves as the initial authentication layer, not the final security decision. Zero trust principles, defined in NIST SP 800-207, require continuous verification based on context, risk, and behavior.
SSO supports zero trust by:
- Centralizing identity
- Enforcing authentication policies
- Enabling controls such as conditional access and step-up authentication
Conditional access policies extend SSO by evaluating factors such as device posture, location, and user behavior before granting or maintaining access.
SSO Compliance and Regulatory Alignment
Centralized authentication through SSO can support regulatory and compliance requirements such as SOC 2, ISO 27001, HIPAA, and GDPR by improving visibility and control over access.
SSO contributes to compliance by:
- Providing audit logs for authentication events
- Enabling automated deprovisioning to reduce orphaned accounts
- Supporting least privilege and periodic access reviews
- Demonstrating centralized identity management, which is explicitly referenced in security frameworks such as NIST SP 800-53 (IA control family)
SSO Costs, ROI, and Business Case
SSO costs extend beyond licensing and should be evaluated as part of overall identity infrastructure.
Common cost categories include:
- Licensing or subscription fees
- Integration and implementation
- Training and change managementOngoing administration and monitoring
Key ROI drivers often include:
- Reduced password reset volume and helpdesk workload
- Faster onboarding and offboarding
- Lower risk of credential-based breaches
Total cost of ownership (TCO) depends on deployment model, with cloud-based identity providers often reducing infrastructure and maintenance overhead.
How Bitdefender Can Help
SSO makes identity systems a high-value target, increasing the impact of credential theft and session abuse.
GravityZone endpoint protection blocks the infostealers, credential-harvesting malware, and phishing-delivered payloads attackers use to capture SSO credentials before they reach the identity provider. Extended Email Security detects spear-phishing and Business Email Compromise attempts targeting fake IdP login pages, using deep-learning models to identify anomalies in email traffic.
GravityZone XDR Identity Sensors monitor authentication activity across identity systems. The Active Directory Sensor detects Kerberos brute-force attempts, ticket reuse for lateral movement, and forged authentication tickets used in Golden Ticket attacks. The Azure Active Directory Sensor analyzes sign-in patterns by IP and location, flagging suspicious login activity and unauthorized privilege changes.
GravityZone XDR correlates these identity signals with endpoint, network, and cloud application telemetry, building a unified view of attacks across the SSO login, post-authentication session activity, and lateral movement. When an incident is confirmed, response actions can be triggered directly from the console: disabling compromised user accounts in Active Directory or Azure AD, forcing password resets, marking users as compromised, and removing malicious emails from connected mailboxes.
Bitdefender MDR adds 24/7 analyst investigation of identity-related incidents and can execute pre-approved containment actions on the organization's behalf — including password resets on compromised accounts — closing the gap between detection and response that authentication controls alone cannot bridge.
Frequently Asked Questions
What is federated SSO?
Federated SSO is a form of Single Sign-On that allows users from one organization to access applications managed by another, using a trusted identity provider as the bridge. Instead of each organization maintaining separate credentials for its partners, federation establishes a trust relationship between identity providers and service providers, allowing authentication to be verified across organizational boundaries.
How does SSO work with Active Directory?
SSO works with Active Directory through two primary mechanisms. Within an on-premise domain, Kerberos-based Windows Integrated Authentication allows users who have logged into a corporate workstation to access internal systems without additional prompts. For applications outside the internal network, Active Directory Federation Services (ADFS) or a synchronized cloud identity provider can extend Active Directory identities to web and SaaS applications, enabling SSO across both internal and external systems.
How long does an SSO session last?
SSO session duration varies by deployment but is typically governed by two settings: the identity provider's session lifetime and the token expiration window. Identity provider sessions commonly last from a few hours to a working day, while individual tokens issued to applications often expire within minutes to hours, requiring renewal during longer sessions. Shorter session and token lifetimes reduce the exposure window if credentials or sessions are compromised, while longer lifetimes reduce login friction — a tradeoff that organizations balance based on the sensitivity of the systems being accessed.
Is Single Sign-On secure?
SSO can improve security when combined with strong controls, but it concentrates authentication risk in one system. Its security depends on measures such as multi-factor authentication (MFA), phishing protection, and monitoring.
Can SSO be hacked?
Yes. Attackers may target SSO through phishing, token theft, or compromised credentials. Mitigation includes enforcing phishing-resistant MFA, limiting token lifetimes, and monitoring authentication activity.
Does SSO replace multi-factor authentication (MFA)?
No. SSO and MFA serve different purposes and work together. SSO simplifies access by allowing one login across systems, while MFA strengthens authentication by requiring additional verification factors.
What happens when the SSO provider goes down?
If the identity provider goes down, users typically cannot access connected applications. Organizations mitigate this risk through redundancy, failover, and break-glass access mechanisms for critical systems.