Demystifying SSO: A Deep Dive into the Mechanics of Single Sign-On Authentication