Open superstes opened 2 weeks ago
Also: Have not found a streight-forward documentation on how to assign privileges to the service-account. Got stuck on unprivileged access
and retracted to use imap with app-passwords.. https://support.google.com/accounts/answer/185833?hl=en
@nathanthorpe @mkupferman worked on the Gmail integration and can probably shed some light on this.
It seems the gmail api is stuck at creating the oauth token. Here it calls the external flow module: https://github.com/domainaware/parsedmarc/blob/master/parsedmarc/mail/gmail.py#L30 This flow module states:
So basically it waits (forever) for you to open the browser and log-in interactively (from what I understand).
I had success using a service account for the non-interactive API access. But for this to work, the _get_creds function needs to be rewritten to this:
Note that the content of the credentials_file.json needs to replaced by the service account key