1st working version of OAuth2 authentication