How to use OAuth2 from the third-party providers