added sso ruby code