"Behind the Scenes of Single Sign-On" is a practical dive into corporate SSO: from the first redirect to the login screen to token verification, cookie operations, and establishing trust between the application, identity provider, and corporate infrastructure.
What this material is about
Single Sign-On seems simple only on the surface: the user clicks a button, authenticates, and accesses the application. In reality, this process hides a chain of protocols, redirect URIs, sessions, assertions, access tokens, ID tokens, certificates, roles, and security policies.
The material explains in detail how the authentication of a Spring Boot application through Keycloak and Azure Entra ID works using SAML 2.0 and OpenID Connect. You will see how the application, identity provider, service provider, relying party, and user’s browser interact.
Topics covered
- Principles of corporate SSO and federated authentication.
- Differences between SAML 2.0, OpenID Connect, and OAuth 2.0.
- The role of Keycloak and Azure Entra ID in modern IAM infrastructure.
- How a Spring Boot application processes login flow, redirect, and callback.
- How cookies, browser sessions, access tokens, ID tokens, and SAML assertions work.
- Configuring trust relationships, metadata, certificates, and client configuration.
- Why login errors occur and how to quickly find their causes.
Who it is suitable for
This book will be useful to architects, backend developers, DevOps engineers, IAM specialists, security engineers, and corporate systems administrators who want to gain a deeper understanding of authentication in an enterprise environment.
The material is especially useful for those working with Spring Boot, Keycloak, Azure Entra ID, SAML 2.0, OpenID Connect, corporate portals, internal services, and integrations with Single Sign-On.
What you will understand after studying
- What really happens after pressing the "Log in with SSO" button.
- How the application understands that the user is successfully authenticated.
- Where typical problems with redirects, tokens, sessions, and certificates arise.
- How to read and analyze SAML assertions, JWT, and OIDC claims.
- How to reduce MTTR in incidents related to authorization and authentication.
- How to design a more reliable and predictable SSO integration.
Why this is important
In a corporate environment, a SSO failure can block access to critical applications, disrupt workflows, and reduce users' trust in the system. Therefore, it is important not just to be able to connect a ready-made library, but to understand the entire authentication chain from the browser to the identity provider.
In an era where part of the code is increasingly generated using AI, a systematic understanding becomes especially valuable: how protocols are structured, where component responsibility boundaries lie, and why secure SSO configuration directly impacts business reliability.
Practical value
This material helps connect application development, identity management, and information security into a unified picture. As a result, you will be more confident in designing SSO integrations, diagnose errors faster, and interact more effectively with development, infrastructure, and security teams.