Added base logic in sso