improve sso for production vs not production