Add oauth2 support by allowing an access token to be passed into the client.