Changing google login to more general case - OAuth 2.0 login