0
0
Cybersecurityknowledge~30 mins

Single Sign-On (SSO) in Cybersecurity - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding Single Sign-On (SSO)
📖 Scenario: You work in a company that uses many different web applications for daily tasks. Logging into each app separately is slow and frustrating. Your team wants to understand how Single Sign-On (SSO) can help users log in once and access all apps securely.
🎯 Goal: Build a simple conceptual model of Single Sign-On (SSO) using a dictionary to represent users and their login status, then simulate the SSO process step-by-step.
📋 What You'll Learn
Create a dictionary of users with their login status
Add a variable to represent the SSO login token
Write code to update login status using the SSO token
Complete the model by showing all users logged in after SSO
💡 Why This Matters
🌍 Real World
SSO is widely used in companies and online services to improve user experience by reducing repeated logins.
💼 Career
Understanding SSO helps cybersecurity professionals design secure and user-friendly authentication systems.
Progress0 / 4 steps
1
Create the users dictionary
Create a dictionary called users with these exact entries: 'Alice': False, 'Bob': False, 'Charlie': False. This dictionary shows if each user is logged in (false means not logged in).
Cybersecurity
Need a hint?

Use curly braces {} to create a dictionary. Each user name is a key, and their login status is the value.

2
Add the SSO token variable
Add a variable called sso_token and set it to True. This token represents that the user has successfully logged in once using SSO.
Cybersecurity
Need a hint?

Just create a variable and assign it the value True.

3
Update users login status using SSO token
Use a for loop with variables user and status to iterate over users.items(). Inside the loop, update each user's login status to the value of sso_token.
Cybersecurity
Need a hint?

Use a for loop to go through each user and set their status to True using the sso_token variable.

4
Complete the SSO model
Add a final line that creates a variable called all_logged_in and sets it to all(users.values()). This checks if all users are logged in after SSO.
Cybersecurity
Need a hint?

Use the all() function to check if every value in the users dictionary is True.