-Added factory class for OAuth2