What Is Single Sign-On Authentication (SSO) And How Does It Work? (2024)

Single Sign-On (SSO) authentication is now required more than ever. Nowadays, almost every website requires some form of authentication to access its features and content. With the number of websites and services rising, a centralized login system has become a necessity. In this post, we will study how SSO authentication is implemented for the web. Read on!

Federated Identity Glossary

The concept of a centralized or linked electronic identity is known as federated identity. Federated identity systems handle several concerns:

  • Authentication
  • Authorization
  • User attributes exchange
  • User management

The authentication aspect deals with validating user credentials and establishing the identity of the user.

Authorization is related to access restrictions (e.g., is the user allowed to access X resource?).

The attributes exchange aspect deals with data sharing across different user management systems. For instance, fields such as "real name" may be present in multiple systems. A federated identity system prevents data duplication by linking the related attributes.

Lastly, user management is related to the administration (creation, deletion, update) of user accounts. A federated identity system usually provides the means for administrators (or users) to handle accounts across domains or subsystems.

SSO is strictly related to the authentication part of a federated identity system. Its only concern is establishing the identity of the user and then sharing that information with each subsystem that requires the data. Below, we focus on this crucial aspect of a federated identity system.

What Is Single Sign-On Authentication (SSO) And How Does It Work? (1)

Single Sign-On (SSO) Authentication

Sooner or later web development teams face one problem: you have developed an application at domain X and now you want your new deployment at domain Y to use the same login information as the other domain. In fact, you want more: you want users who are already logged-in at domain X to be already logged-in at domain Y. This is what SSO is all about.

What Is Single Sign-On Authentication (SSO) And How Does It Work? (2)

The obvious solution to this problem is to share session information across different domains. However, for security reasons, browsers enforce a policy known as the same origin policy. This policy dictates that cookies (and other locally stored data) can only be accessed by its creator (i.e. the domain that originally requested the data to be stored). In other words, domain X cannot access cookies from domain Y or vice versa. This is what SSO solutions solve in one way or the other: sharing session information across different domains.

What Is Single Sign-On Authentication (SSO) And How Does It Work? (3)

Different SSO protocols share session information in different ways, but the essential concept is the same: there is a central domain, through which authentication is performed, and then the session is shared with other domains in some way.

For instance, the central domain may generate a signed JSON Web Token (JWT), which may be encrypted using JSON Web Encryption (JWE). This token may then be passed to the client and used by the authentication domain as well as any other domains. The token can be passed to the original domain by a redirect and it contains all the information needed to identify the user for the domain requiring authentication. As the token is signed, it cannot be modified in any way by the client.

What Is Single Sign-On Authentication (SSO) And How Does It Work? (4)

Whenever users go to a domain that requires authentication, they are redirected to the authentication domain. As users are already logged-in at that domain, they can be immediately redirected to the original domain with the necessary authentication token.

What Is Single Sign-On Authentication (SSO) And How Does It Work? (5)

SSO Authentication with Auth0

If you have been reading about SSO online, you have probably found that there are many different implementations: OpenID Connect, Facebook Connect, SAML, Microsoft Account (formerly known as Passport), etc. Our advice is to choose whatever is simplest for your development efforts. For instance, SAML is deeply entrenched in enterprise developments, so in some cases, it will make sense to pick that. If you think you will need to integrate your development with more than one alternative, don't despair: there are frameworks that allow interoperability between different SSO solutions. In fact, that's one of the things we do at Auth0.

Try out Auth0 authentication for free.Get started →

You can go and check our docs on Single Sign-On and the Auth0 SSO samples.

If you remember the Typical SSO Scenario diagram we saw earlier, you can see how Auth0 comes to play in the next diagram:

What Is Single Sign-On Authentication (SSO) And How Does It Work? (6)

In this case, Auth0 is the Authentication Server and it works as a bridge between different SSO frameworks.

For further information, we invite you to learn more about SSO with our free whitepaper.

Download the Whitepaper

What Is Single Sign-On Authentication (SSO) And How Does It Work? (7)

Conclusion

Single Sign-On authentication is here to stay. Decentralized systems are becoming more and more common and authentication is an essential aspect of all of them. SSO solves a big problem: how to manage the increasing number of users across a whole ecosystem of applications and services. Frameworks such as OpenID Connect and services such as the one we provide at Auth0 make integrating Single Sign-On into your new or existing applications much easier. If you are implementing authentication for a new application or service, consider integrating SSO from the get-go.

What Is Single Sign-On Authentication (SSO) And How Does It Work? (8)

What Is Single Sign-On Authentication (SSO) And How Does It Work? (2024)
Top Articles
With new HIV infections rising in a growing number of countries and regions, urgent action is needed to turn the prevention crisis around
Melania Trump makes appearance at Republican National Convention for husband Donald's speech
Windcrest Little League Baseball
Southeast Iowa Buy Sell Trade
South Carolina defeats Caitlin Clark and Iowa to win national championship and complete perfect season
Big Y Digital Coupon App
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Blue Ridge Now Mugshots Hendersonville Nc
Erin Kate Dolan Twitter
Best Restaurants Ventnor
The Shoppes At Zion Directory
Costco Gas Foster City
How To Cancel Goodnotes Subscription
X-Chromosom: Aufbau und Funktion
Decosmo Industrial Auctions
Noaa Duluth Mn
SN100C, An Australia Trademark of Nihon Superior Co., Ltd.. Application Number: 2480607 :: Trademark Elite Trademarks
Bellin Patient Portal
2021 MTV Video Music Awards: See the Complete List of Nominees - E! Online
Booknet.com Contract Marriage 2
Walgreens On Bingle And Long Point
Firefly Festival Logan Iowa
Healthy Kaiserpermanente Org Sign On
Lesson 1.1 Practice B Geometry Answers
Kacey King Ranch
Fedex Walgreens Pickup Times
Utexas Baseball Schedule 2023
Eaccess Kankakee
Newsday Brains Only
Bratislava | Location, Map, History, Culture, & Facts
What Time Is First Light Tomorrow Morning
October 31St Weather
Waffle House Gift Card Cvs
The Bold And The Beautiful Recaps Soap Central
Pitchfork's Top 200 of the 2010s: 50-1 (clips)
Frank 26 Forum
Oxford Alabama Craigslist
Kelly Ripa Necklace 2022
Vision Source: Premier Network of Independent Optometrists
D-Day: Learn about the D-Day Invasion
My Locker Ausd
Chathuram Movie Download
M&T Bank
Youravon Com Mi Cuenta
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis
Jane Powell, MGM musical star of 'Seven Brides for Seven Brothers,' 'Royal Wedding,' dead at 92
9294027542
Lesson 5 Homework 4.5 Answer Key
Best brow shaping and sculpting specialists near me in Toronto | Fresha
WHAT WE CAN DO | Arizona Tile
Coldestuknow
Haunted Mansion Showtimes Near The Grand 14 - Ambassador
Latest Posts
Article information

Author: Margart Wisoky

Last Updated:

Views: 5672

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Margart Wisoky

Birthday: 1993-05-13

Address: 2113 Abernathy Knoll, New Tamerafurt, CT 66893-2169

Phone: +25815234346805

Job: Central Developer

Hobby: Machining, Pottery, Rafting, Cosplaying, Jogging, Taekwondo, Scouting

Introduction: My name is Margart Wisoky, I am a gorgeous, shiny, successful, beautiful, adventurous, excited, pleasant person who loves writing and wants to share my knowledge and understanding with you.