Skip to contentমূল লেখায় যান

Topic 48 · Courseটপিক 48 · Course

Single Sign-On

You log in to the company mail. Then you open the chat tool and the ticket tool, and neither asks for a password. They do not check your password at all. Another system tells them who you are, and they decide whether to believe it.

7 min read7 মিনিটে পড়া যায় · 8 sections8টি সেকশন · 3 sources3টি সোর্স · updated Oct 2026আপডেট: Oct 2026

One login, two appsএকটা লগইন, দুটো অ্যাপ

Log in once at the identity provider and watch a second app skip the password, then see a wrong-audience assertion get refused.আইডেন্টিটি প্রোভাইডারে একবার লগইন করুন, দেখুন দ্বিতীয় অ্যাপ পাসওয়ার্ড চায় না, তারপর ভুল অডিয়েন্সের অ্যাসারশন কীভাবে প্রত্যাখ্যাত হয় দেখুন।

3 min3 মিনিট8 steps8টি ধাপ
  • Passwords typedপাসওয়ার্ড লেখা0
  • Checks passedযাচাই পাস0 / 6
  • Sessions openসেশন খোলা0
ask for pageপেজ চাওয়াyou · browserআপনি · ব্রাউজারIdPIdPproviderপ্রোভাইডারno sessionসেশন নেইApp Aঅ্যাপ ARPRPno sessionসেশন নেইApp Bঅ্যাপ BRPRP

You’ll learnআপনি শিখবেন

  • What the IdP, the app and the assertion doIdP, অ্যাপ আর অ্যাসারশন কী করে
  • The six checks an app makesঅ্যাপ যে ছয়টা যাচাই করে
  • Why the IdP and the app keep separate sessionsIdP আর অ্যাপ কেন আলাদা সেশন রাখে
  • Why a second app needs no passwordদ্বিতীয় অ্যাপে কেন পাসওয়ার্ড লাগে না
  • Why the audience check mattersঅডিয়েন্স যাচাই কেন জরুরি

In plain words

Single sign-on (SSO) is what the user sees: one login, many apps. The mechanism is called federation. NIST defines federation as a way to authenticate a user to an app without that app checking the user's login factors itself, and says it is "sometimes known as" single sign-on Source 1সোর্স 1.

Three parties take part Source 1সোর্স 1:

  • The user (NIST says subscriber) logs in.
  • The identity provider (IdP) checks the login and sends a statement about the user. This statement is the assertion.
  • The relying party (RP) is the app. It verifies the assertion, starts its own session, and lets the user in.

So the user does not need a separate login method for each app Source 1সোর্স 1. The names change between standards. SAML calls the app a service provider (SP) Source 2সোর্স 2. OpenID Connect (OIDC) calls the IdP an OpenID Provider (OP) Source 3সোর্স 3. The assertion is a SAML Assertion in SAML and an ID Token in OIDC Source 1সোর্স 1.

সহজ English

Single sign-on (SSO) means one login for many apps. The mechanism behind it is called federation. In federation, an app does not check the user's login factors itself. NIST says federation is "sometimes known as" single sign-on Source 1সোর্স 1.

Three parties take part Source 1সোর্স 1:

  • The user logs in.
  • The identity provider (IdP) checks the login. Then it sends a statement about the user. This statement is the assertion.
  • The relying party (RP) is the app. It verifies the assertion. Then it starts its own session and lets the user in.

So the user does not need a separate login method for each app Source 1সোর্স 1. The names change between standards. SAML calls the app a service provider (SP) Source 2সোর্স 2. OpenID Connect (OIDC) calls the IdP an OpenID Provider (OP) Source 3সোর্স 3. The assertion is a SAML Assertion in SAML. It is an ID Token in OIDC Source 1সোর্স 1.

বাংলা ব্যাখ্যা

সিঙ্গেল সাইন-অন (SSO) মানে একবার লগইন করলেই অনেক অ্যাপ ব্যবহার করা যায়। এর পেছনের পদ্ধতির নাম ফেডারেশন (federation)। ফেডারেশনে অ্যাপ নিজে ইউজারের লগইন ফ্যাক্টর (login factor) যাচাই করে না। NIST বলে, ফেডারেশনকে "sometimes known as" single sign-on বলা হয় Source 1সোর্স 1।

তিনটি পক্ষ এতে অংশ নেয় Source 1সোর্স 1:

  • ইউজার লগইন করে।
  • আইডেন্টিটি প্রোভাইডার (identity provider, IdP) লগইন যাচাই করে। তারপর ইউজার সম্পর্কে একটি বিবৃতি পাঠায়। এই বিবৃতির নাম অ্যাসারশন (assertion)।
  • রিলাইং পার্টি (relying party, RP) হলো অ্যাপ। সে অ্যাসারশন যাচাই করে। তারপর নিজের সেশন শুরু করে এবং ইউজারকে ঢুকতে দেয়।

তাই প্রতিটি অ্যাপের জন্য ইউজারের আলাদা লগইন পদ্ধতি লাগে না Source 1সোর্স 1। বিভিন্ন স্ট্যান্ডার্ডে নাম বদলায়। SAML অ্যাপকে সার্ভিস প্রোভাইডার (service provider, SP) বলে Source 2সোর্স 2। OpenID Connect (OIDC) IdP-কে OpenID Provider (OP) বলে Source 3সোর্স 3। SAML-এ অ্যাসারশন হলো SAML Assertion। OIDC-তে সেটি ID Token Source 1সোর্স 1।

When you need it

NIST says federation is generally the preferred choice when the app and the user account are not run together in one security domain, because the app need not issue one more login method Source 1সোর্স 1. It can also help inside one domain, for central account management Source 1সোর্স 1. In SAML, web sign-on across different domains is arguably the most important use case Source 2সোর্স 2.

The parties work under a trust agreement: it says who plays which role, and sets the terms of their work Source 1সোর্স 1.

সহজ English

NIST says federation is generally the preferred choice when the app and the user account are not run together in one security domain. The reason is that the app need not issue one more login method Source 1সোর্স 1. Federation can also help inside one domain, for central account management Source 1সোর্স 1. In SAML, web sign-on across different domains is arguably the most important use case Source 2সোর্স 2.

The parties work under a trust agreement. It says who plays which role. It also sets the terms of their work Source 1সোর্স 1.

বাংলা ব্যাখ্যা

NIST বলে, অ্যাপ এবং ইউজার অ্যাকাউন্ট একই সিকিউরিটি ডোমেইনে (security domain) না চললে সাধারণত ফেডারেশনই পছন্দের পথ। কারণ অ্যাপকে আরেকটি লগইন পদ্ধতি চালু করতে হয় না Source 1সোর্স 1। একটি ডোমেইনের ভেতরেও ফেডারেশন কাজে লাগতে পারে, কেন্দ্রীয়ভাবে অ্যাকাউন্ট পরিচালনার জন্য Source 1সোর্স 1। SAML-এ আলাদা ডোমেইন জুড়ে ওয়েব সাইন-অন সম্ভবত সবচেয়ে গুরুত্বপূর্ণ ব্যবহারের ক্ষেত্র Source 2সোর্স 2।

পক্ষগুলো একটি ট্রাস্ট অ্যাগ্রিমেন্টের (trust agreement) অধীনে কাজ করে। সেখানে বলা থাকে কে কোন ভূমিকা নেয়। কাজের শর্তও সেখানে ঠিক করা হয় Source 1সোর্স 1।

How it works

SAML, started by the app. This is the more common SAML flow Source 2সোর্স 2. The steps follow the example of the overview, with a redirect to the IdP and a POST back Source 2সোর্স 2.

  1. The user asks for a protected page and has no session. The app saves the address of that page.
  2. The app sends the browser to the IdP with an authentication request.
  3. If the user has no suitable login at the IdP, the IdP asks for credentials.
  4. The IdP builds a signed assertion, and the browser posts it to the app.
  5. The app validates the signature, creates a local session, and sends the user to the saved page.

An assertion usually has a subject, conditions that limit its use, and statements. One kind of statement says how and when the user logged in. Another carries details such as a group Source 2সোর্স 2.

OpenID Connect. OIDC is an identity layer on top of OAuth 2.0 Source 3সোর্স 3. (The page OAuth 2.0 and OpenID Connect explains the base.) In the code flow, the OP logs the user in and sends the user back with a code. The app swaps the code for an ID Token Source 3সোর্স 3. NIST notes that the assertion then travels on the back channel, a direct link between app and provider Source 1সোর্স 1. The ID Token is a JSON Web Token (JWT). It has claims such as iss (issuer), sub (user), aud (audience), exp (end time), and iat (issue time) Source 3সোর্স 3.

What the app checks. NIST lists these checks: the signature, the issuer, the time window, the audience, the nonce when one was sent, and replay Source 1সোর্স 1. OIDC asks for the same kind of checks Source 3সোর্স 3. The audience check stops an assertion made for one app from working at another Source 1সোর্স 1. A short validity window lowers the risk of theft or replay Source 1সোর্স 1. The sub value is unique only inside one issuer Source 3সোর্স 3.

Separate sessions. The IdP and the app each keep their own session, and the assertion has its own validity time. This time is not the session length Source 1সোর্স 1 Source 3সোর্স 3.

সহজ English

SAML, started by the app. This is the more common SAML flow Source 2সোর্স 2. The steps follow the example of the overview. The app redirects the browser to the IdP. Later the browser posts the assertion back to the app Source 2সোর্স 2.

  1. The user asks for a protected page and has no session. The app saves the address of that page.
  2. The app sends the browser to the IdP with an authentication request.
  3. If the user has no suitable login at the IdP, the IdP asks for credentials.
  4. The IdP builds a signed assertion. The browser posts it to the app.
  5. The app validates the signature and creates a local session. Then it sends the user to the saved page.

An assertion usually has a subject, conditions that limit its use, and statements. One kind of statement says how and when the user logged in. Another kind carries details such as a group Source 2সোর্স 2.

OpenID Connect. OIDC is an identity layer on top of OAuth 2.0 Source 3সোর্স 3. In the code flow, the OP logs the user in and sends the user back with a code. The app swaps the code for an ID Token Source 3সোর্স 3. NIST notes that the assertion then travels on the back channel. The back channel is a direct link between app and provider Source 1সোর্স 1. The ID Token is a JSON Web Token (JWT). It has claims such as iss (issuer), sub (user), aud (audience), exp (end time), and iat (issue time) Source 3সোর্স 3.

What the app checks. NIST lists these checks: the signature, the issuer, the time window, the audience, the nonce when one was sent, and replay Source 1সোর্স 1. OIDC asks for the same kind of checks Source 3সোর্স 3. The audience check stops an assertion made for one app from working at another Source 1সোর্স 1. A short validity window lowers the risk of theft or replay Source 1সোর্স 1. The sub value is unique only inside one issuer Source 3সোর্স 3.

Separate sessions. The IdP and the app each keep their own session. The assertion has its own validity time. This time is not the session length Source 1সোর্স 1 Source 3সোর্স 3.

বাংলা ব্যাখ্যা

SAML, অ্যাপ শুরু করলে। এটি SAML-এর বেশি প্রচলিত ফ্লো (flow) Source 2সোর্স 2। ধাপগুলো ওভারভিউয়ের উদাহরণ অনুসরণ করে। অ্যাপ ব্রাউজারকে IdP-তে রিডাইরেক্ট করে। পরে ব্রাউজার অ্যাসারশনটি অ্যাপে POST করে Source 2সোর্স 2।

  1. ইউজার একটি সুরক্ষিত পেজ চায়, কিন্তু তার কোনো সেশন নেই। অ্যাপ সেই পেজের ঠিকানা সংরক্ষণ করে।
  2. অ্যাপ একটি অথেনটিকেশন রিকুয়েস্ট দিয়ে ব্রাউজারকে IdP-তে পাঠায়।
  3. IdP-তে ইউজারের উপযুক্ত লগইন না থাকলে IdP ক্রেডেনশিয়াল (credentials) চায়।
  4. IdP একটি সাইন করা অ্যাসারশন তৈরি করে। ব্রাউজার সেটি অ্যাপে POST করে।
  5. অ্যাপ সিগনেচার যাচাই করে এবং একটি লোকাল সেশন তৈরি করে। তারপর ইউজারকে সংরক্ষিত পেজে পাঠায়।

একটি অ্যাসারশনে সাধারণত থাকে একটি সাবজেক্ট (subject), ব্যবহার সীমিত করার শর্ত (conditions) এবং স্টেটমেন্ট (statements)। এক ধরনের স্টেটমেন্ট বলে ইউজার কীভাবে ও কখন লগইন করেছে। আরেক ধরনের স্টেটমেন্টে থাকে গ্রুপের মতো বিবরণ Source 2সোর্স 2।

OpenID Connect। OIDC হলো OAuth 2.0-এর উপরের একটি আইডেন্টিটি লেয়ার (identity layer) Source 3সোর্স 3। কোড ফ্লোতে (code flow) OP ইউজারকে লগইন করায় এবং একটি কোডসহ ইউজারকে ফেরত পাঠায়। অ্যাপ সেই কোড দিয়ে একটি ID Token নেয় Source 3সোর্স 3। NIST বলে, তখন অ্যাসারশন ব্যাক চ্যানেল (back channel) দিয়ে যায়। ব্যাক চ্যানেল হলো অ্যাপ আর প্রোভাইডারের মধ্যে সরাসরি সংযোগ Source 1সোর্স 1। ID Token একটি JSON Web Token (JWT)। এতে iss (issuer), sub (user), aud (audience), exp (end time) এবং iat (issue time)-এর মতো ক্লেইম (claims) থাকে Source 3সোর্স 3।

অ্যাপ কী যাচাই করে। NIST এই যাচাইগুলোর তালিকা দেয়: সিগনেচার, ইস্যুয়ার (issuer), সময়সীমা (time window), অডিয়েন্স (audience), নন্স (nonce, পাঠানো হলে) এবং রিপ্লে (replay) Source 1সোর্স 1। OIDC-ও একই ধরনের যাচাই চায় Source 3সোর্স 3। অডিয়েন্স যাচাই এক অ্যাপের জন্য তৈরি অ্যাসারশনকে অন্য অ্যাপে কাজ করতে দেয় না Source 1সোর্স 1। ছোট বৈধতার সময়সীমা চুরি বা রিপ্লের ঝুঁকি কমায় Source 1সোর্স 1। sub মান শুধু একটি ইস্যুয়ারের ভেতরে ইউনিক Source 3সোর্স 3।

আলাদা সেশন। IdP এবং অ্যাপ প্রত্যেকে নিজের সেশন রাখে। অ্যাসারশনের নিজস্ব বৈধতার সময় আছে। এই সময় সেশনের দৈর্ঘ্য নয় Source 1সোর্স 1 Source 3সোর্স 3।

Logout

Logout is the hard part. NIST says that when the IdP ends its session, the app sessions do not necessarily end. IdP and app may send each other end-session events if the protocol supports it Source 1সোর্স 1. The app may also end its own session at any time Source 1সোর্স 1.

SAML has a Single Logout protocol that aims to end all active sessions of a user at nearly the same time. In the example, the app ends its local session and asks the IdP to log the user out. The IdP ends its session and sends a logout request to the other apps Source 2সোর্স 2. The overview warns that the result cannot be guaranteed, because the user's browser can interrupt the visits to the apps Source 2সোর্স 2.

OIDC Core has no logout flow. It lists separate specifications for logout Source 3সোর্স 3.

সহজ English

Logout is the hard part. NIST says that when the IdP ends its session, the app sessions do not necessarily end. The IdP and the app may send each other end-session events if the protocol supports it Source 1সোর্স 1. The app may also end its own session at any time Source 1সোর্স 1.

SAML has a Single Logout protocol. It aims to end all active sessions of a user at nearly the same time. In the example, the app ends its local session and asks the IdP to log the user out. The IdP ends its session and sends a logout request to the other apps Source 2সোর্স 2. The overview warns that the result cannot be guaranteed. The reason is that the user's browser can interrupt the visits to the apps Source 2সোর্স 2.

OIDC Core has no logout flow. It lists separate specifications for logout Source 3সোর্স 3.

বাংলা ব্যাখ্যা

লগআউট হলো কঠিন অংশ। NIST বলে, IdP তার সেশন শেষ করলে অ্যাপের সেশন যে শেষ হবেই, তা নয়। প্রোটোকল সমর্থন করলে IdP এবং অ্যাপ একে অপরকে এন্ড-সেশন ইভেন্ট (end-session event) পাঠাতে পারে Source 1সোর্স 1। অ্যাপ নিজের সেশন যেকোনো সময় শেষ করতেও পারে Source 1সোর্স 1।

SAML-এ একটি Single Logout প্রোটোকল আছে। এর লক্ষ্য হলো ইউজারের সব সক্রিয় সেশন প্রায় একই সময়ে শেষ করা। উদাহরণে অ্যাপ তার লোকাল সেশন শেষ করে এবং IdP-কে ইউজারকে লগআউট করাতে বলে। IdP তার সেশন শেষ করে এবং অন্য অ্যাপগুলোতে লগআউট রিকুয়েস্ট পাঠায় Source 2সোর্স 2। ওভারভিউ সতর্ক করে যে ফলাফলের নিশ্চয়তা দেওয়া যায় না। কারণ ইউজারের ব্রাউজার অ্যাপগুলোতে যাওয়ার মাঝে বাধা দিতে পারে Source 2সোর্স 2।

OIDC Core-তে কোনো লগআউট ফ্লো নেই। লগআউটের জন্য এটি আলাদা স্পেসিফিকেশনের তালিকা দেয় Source 3সোর্স 3।

A real-life example

This example is the tutorial's own. A company has one IdP. A tester opens the test-management tool. It sends the browser to the IdP, the tester signs in, and the tool shows the page that was asked for. Later the tester opens the bug tracker. The IdP still has the tester's session, so there is no password prompt.

Now the tester logs out of the test tool. The bug tracker may stay usable. That depends on its own session and on how logout is set up.

সহজ English

This example is the tutorial's own. A company has one IdP. A tester opens the test-management tool. The tool sends the browser to the IdP. The tester signs in, and the tool shows the page that was asked for. Later the tester opens the bug tracker. The IdP still has the tester's session, so there is no password prompt.

Now the tester logs out of the test tool. The bug tracker may stay usable. That depends on its own session and on how logout is set up.

বাংলা ব্যাখ্যা

এই উদাহরণটি টিউটোরিয়ালের নিজস্ব। একটি কোম্পানির একটি IdP আছে। একজন টেস্টার টেস্ট-ম্যানেজমেন্ট টুল খোলে। টুল ব্রাউজারকে IdP-তে পাঠায়। টেস্টার সাইন ইন করে, আর টুল চাওয়া পেজটি দেখায়। পরে টেস্টার বাগ ট্র্যাকার খোলে। IdP-র কাছে তখনও টেস্টারের সেশন আছে, তাই পাসওয়ার্ড চাওয়া হয় না।

এখন টেস্টার টেস্ট টুল থেকে লগআউট করে। বাগ ট্র্যাকার হয়তো ব্যবহারযোগ্য থেকে যায়। এটি নির্ভর করে তার নিজের সেশনের উপর এবং লগআউট কীভাবে সেট করা আছে তার উপর।

Common mistakes

সহজ English

বাংলা ব্যাখ্যা

  • এক অ্যাপে লগআউট করাকে সব জায়গায় লগআউট ধরে নেওয়া। সেশনগুলো আলাদা Source 1সোর্স 1। Single logout-এর ফলাফলের নিশ্চয়তা নেই Source 2সোর্স 2।
  • অ্যাসারশনের মেয়াদ-শেষের সময়কে সেশনের দৈর্ঘ্য হিসেবে ব্যবহার করা। NIST এটি নিষেধ করে Source 1সোর্স 1।
  • অডিয়েন্স যাচাই না করা। তাহলে অ্যাপ অন্য অ্যাপের জন্য তৈরি অ্যাসারশন গ্রহণ করে ফেলতে পারে Source 1সোর্স 1।
  • শুধু sub দিয়ে ইউজার চেনা। এটি শুধু তার ইস্যুয়ারের ভেতরে ইউনিক Source 3সোর্স 3।

What a tester can check

Tutorial advice

These test ideas are the tutorial's own advice, not a claim of a source. Use a test IdP and test apps that you own.

  • First login. Open a protected page with no session. Check that you land on that page after the IdP, not on a default page.
  • Second app. With a live IdP session, open another app. Check that it needs no password.
  • Wrong audience. Check that an app rejects an assertion or ID Token made for a different app.
  • Expiry. Check that an expired token is rejected.
  • Logout. Log out of one app, then check the other apps and the IdP. Note what happens.
  • Disabled account. Disable the user at the IdP. Check what an app with a live session does, and when.
  • Two IdPs. Check that equal sub values from two issuers do not become one account.

সহজ English

These test ideas are the tutorial's own advice, not a claim of a source. Use a test IdP and test apps that you own.

  • First login. Open a protected page with no session. Check that you land on that page after the IdP, not on a default page.
  • Second app. With a live IdP session, open another app. Check that it needs no password.
  • Wrong audience. Check that an app rejects an assertion or ID Token made for a different app.
  • Expiry. Check that an expired token is rejected.
  • Logout. Log out of one app. Then check the other apps and the IdP. Note what happens.
  • Disabled account. Disable the user at the IdP. Check what an app with a live session does, and when.
  • Two IdPs. Check that equal sub values from two issuers do not become one account.

বাংলা ব্যাখ্যা

এই টেস্টের ধারণাগুলো টিউটোরিয়ালের নিজস্ব পরামর্শ, কোনো সোর্সের দাবি নয়। আপনার নিজের টেস্ট IdP এবং টেস্ট অ্যাপ ব্যবহার করুন।

  • প্রথম লগইন। সেশন ছাড়া একটি সুরক্ষিত পেজ খুলুন। দেখুন IdP-র পরে আপনি সেই পেজেই পৌঁছান, কোনো ডিফল্ট পেজে নয়।
  • দ্বিতীয় অ্যাপ। IdP সেশন চালু থাকা অবস্থায় আরেকটি অ্যাপ খুলুন। দেখুন তাতে পাসওয়ার্ড লাগে না।
  • ভুল অডিয়েন্স। দেখুন অন্য অ্যাপের জন্য তৈরি অ্যাসারশন বা ID Token অ্যাপ প্রত্যাখ্যান করে।
  • মেয়াদ-শেষ। দেখুন মেয়াদ-শেষ টোকেন প্রত্যাখ্যাত হয়।
  • লগআউট। একটি অ্যাপ থেকে লগআউট করুন। তারপর অন্য অ্যাপ এবং IdP দেখুন। কী ঘটে তা লিখে রাখুন।
  • নিষ্ক্রিয় অ্যাকাউন্ট। IdP-তে ইউজারকে নিষ্ক্রিয় (disable) করুন। দেখুন সক্রিয় সেশন থাকা অ্যাপ কী করে, এবং কখন করে।
  • দুটি IdP। দেখুন দুই ইস্যুয়ারের সমান sub মান এক অ্যাকাউন্ট হয়ে যায় না।

Key words

WordMeaning
FederationPassing identity and login results between separate systems, so an app need not check the login itself Source 1সোর্স 1
Single sign-on (SSO)One login for several apps; NIST says federation is sometimes called this Source 1সোর্স 1
Identity provider (IdP)The party that checks the login and sends the assertion; OIDC says OpenID Provider Source 1সোর্স 1 Source 3সোর্স 3
Relying party (RP)The app that relies on the assertion; SAML says service provider (SP) Source 1সোর্স 1 Source 2সোর্স 2
AssertionA verifiable statement from the IdP about the user and the login Source 1সোর্স 1
ID TokenThe OIDC assertion: a JWT with claims about the login Source 3সোর্স 3
AudienceThe app that an assertion or token is meant for Source 1সোর্স 1 Source 3সোর্স 3
NonceA value that ties a request to its ID Token and helps against replay Source 3সোর্স 3
Trust agreementThe conditions under which the parties may take part in a federation Source 1সোর্স 1
Back channelA direct link between two systems, with no browser in the middle Source 1সোর্স 1
Single logoutThe SAML way to end all sessions of a user at nearly the same time, with no guarantee Source 2সোর্স 2
  1. [1]
    SP 800-63C-4, Digital Identity Guidelines: Federation and Assertions

    NIST · accessed 2026-10-22দেখা হয়েছে: 2026-10-22

  2. [2]
    Security Assertion Markup Language (SAML) V2.0 Technical Overview (Committee Draft 02)

    OASIS · accessed 2026-10-22দেখা হয়েছে: 2026-10-22

  3. [3]
    OpenID Connect Core 1.0 incorporating errata set 2

    OpenID Foundation · accessed 2026-10-22দেখা হয়েছে: 2026-10-22