Fixed Oauth2 authentication.