wasAsked.

Have you worked with SSO? Please explain.

Altimetrik · Role not specified · technical

Published

Asked in 2026 · Authentication & Security

Community answers

Posted by wasAsked editorial collection

Yes. Single Sign-On (SSO) lets a user sign in once with a central identity provider and then access several applications without logging in again. How it works (OpenID Connect example) 1. The user opens App A. App A has no session, so it redirects the browser to the identity provider (IdP) — for example Microsoft Entra ID, Okta, Keycloak or Google Workspace. 2. The user signs in at the IdP (with MFA if required). The IdP creates its own session cookie. 3. The IdP redirects back to App A with an authorization code; App A exchanges it for an ID token (who the user is) and an access token, then creates its own session. 4. Later the user opens App B, which also redirects to the IdP. Because the IdP session already exists, it immediately returns a code without asking for credentials. The user is signed in to App B silently. Protocols - OpenID Connect (built on OAuth 2.0) for modern web, SPA and mobile applications. - SAML 2.0 for many enterprise and legacy applications (XML-based assertions). - Kerberos / Integrated Windows Authentication inside corporate networks. Implementation in ASP.NET Core builder.Services.AddAuthentication(o => { o.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; o.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme; }) .AddCookie() .AddOpenIdConnect(o => { o.Authority = "https://login.microsoftonline.com/<tenant>/v2.0"; o.ClientId = "..."; o.ResponseType = "code"; o.SaveTokens = true; }); With Entra ID, Microsoft.Identity.Web simplifies this further. Things to discuss - Mapping IdP claims and groups to application roles. - Single logout: signing out of one app and ending the IdP session (front-channel or back-channel logout). - Session lifetimes and re-authentication for sensitive actions. - Just-in-time user provisioning or SCIM for syncing users. Benefits: better user experience, centralised password and MFA policies, easier onboarding and offboarding (disable one account to remove access everywhere), and fewer passwords to manage. Describe the IdP and protocol you actually used and one challenge you solved, such as role mapping or logout.

Ravindra Wadile · · 0 likes

Sign in to add your answer

Related interview topics