I'm also having hard times to find out to get this new OAuth2 login up and running. You will have to use service accounts to make requests on behalf of the user. Documentation is here: https://developers.google.com/accounts/docs/OAuth2ServiceAccount
I did not yet manage to get the flow working without each user being prompted again, but this most likely is because I need offline access: