How to integrate SSO functionality?

How to integrate SSO functionality?