Intelligent single sign-on service