Skip to content

Security · Blog

What Is Single Sign-On (SSO)?

How single sign-on lets users sign in once to reach many applications, how the login flow works, and what it means for your business.

By Neel Shah3 min read
Sign in once

Single sign-on (SSO) is an identification system that allows websites to use other, trusted sites to verify users. This frees businesses from the need to hold passwords in their databases, cuts down on login troubleshooting and decreases the damage a hack can cause.

SSO systems work as an identity provider, rather like an ID card. For example, if you get pulled over for speeding, the police officer doesn’t have to know you personally; they can just look at your licence and see that your state vouches for your identity.

01 · Behind the door

How does single sign-on work?

Single sign-on validates a user with a certificate exchanged between the service provider and the identity provider. The information the identity provider sends to the service provider is signed with this certificate, to ensure the details come from a trusted source.

In the SSO method, identity information is passed on as authentication tokens containing information about the user, such as their email address and username.

The login flow

The login flow usually looks like this:

  1. A user browses to the application or website they want to access, known as the service provider.
  2. The service provider sends a token containing some information about the user, such as their email address, to the SSO system, known as the identity provider, as part of a request to authenticate the user.
  3. The identity provider first checks whether the user has already been authenticated. If so, it grants the user access to the service provider application and skips to step 5.
  4. If the user hasn’t logged in, they are prompted to provide the credentials the identity provider requires. This could simply be a username and password, or it might include another form of authentication such as a one-time password (OTP).
  5. Once the identity provider validates the credentials provided, it sends a token back to the service provider confirming successful authentication.
  6. This token is passed through the user’s browser to the service provider.
  7. The service provider validates the token it receives according to the trust relationship set up between the service provider and the identity provider during the initial configuration.
  8. The user is granted access to the service provider.

02 · One ring, many keys

Different types of SSO

Many terms are used when we talk about single sign-on (SSO):

  • Federated Identity Management (FIM)
  • OAuth (specifically OAuth 2.0 nowadays)
  • OpenID Connect (OIDC)
  • Security Assertion Markup Language (SAML)
  • Same Sign-On (SSO)

Some specific systems also come up when discussing single sign-on: Active Directory, Active Directory Federation Services (ADFS) and Lightweight Directory Access Protocol (LDAP).

Active Directory, nowadays specifically referred to as Active Directory Domain Services (ADDS), is Microsoft’s centralised directory service. Users and resources are added to the directory service for central management, and ADDS works with authentication protocols such as NTLM and Kerberos.

Users that belong to ADDS can therefore authenticate from their machines and get access to other systems that integrate with ADDS. This is a form of single sign-on.

Active Directory Federation Services (ADFS) is a type of Federated Identity Management system that also provides single sign-on capabilities. It supports both SAML and OIDC. ADFS is primarily used to set up trust between ADDS and other systems, such as Azure AD or other ADDS forests.

03 · Your front door

The benefits for your business

That’s great news for your users, but what’s in it for you, the website owner?

  • More user sign-ups. SSO lowers the barrier to entry, so new customers can sign up easily and securely by relying on a known brand. When Facebook is managing the process, they don’t worry about your unknown system and brand. Trust increases, and so do conversions.
  • Less work on the back end. You won’t have to fiddle with passwords. While reducing your hack risk is important, even more important is not having to reset people’s passwords every five minutes. All the authentication and password heavy lifting is handled by the trusted authenticator.
  • Data collection. You can also tap into more of the information that Google, Facebook or whoever else makes available. It’s all the benefits of data collection without the hassle that comes with it.
  • Reduced risk. Finally, you’re removing that tempting pie from the windowsill. Hackers have less incentive to hit your site if you don’t host a ton of login details, and you’re less likely to have users with horribly weak passwords poking holes in your site’s overall security.

In short, adopting an SSO solution can make life easier for you and for your clients.

  • Security
  • Identity

Through the door

Let’s talk about your security

Tell us where you are today. Our specialists will get back to you with a clear next step.

Network access control in our case studies

Keep reading

Related insights