General approach for SSO and Showpad