Open Melkor333 opened 4 months ago
(sorry i accidentally pressed ctrl+enter, edited the initial text now!)
Had same issue, you need to enable Gmail API in the project where the credentials are created. You can do so by visiting this page in the console:
This is in the documentation: https://github.com/gauteh/lieer?tab=readme-ov-file#using-your-own-api-key
Also maybe unrelated but in my client creds file I has a project_id
field with the google project ID where the credentials were created:
{
"installed": {
"client_id": "********",
"project_id": "[PROJECT ID]",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "******",
"redirect_uris": [
"http://localhost"
]
}
}
I try to use a manually crafted
credentials.json
because I only got the client_id & client_secret from my company. Using the id & secret + my mail account information works for offlineimap, neomutt & vdirsyncer, so I assume this information should be enough to authenticate and fetch mails. But when using lieer, i getI assume it's because lieer doesn't seem to use the mail account information, but a project_id which I don't have. My credentials.json I used for authentication looked roughly like this:
Authentication works fine:
and a file
.credentials.gmailieer.json
is created.Looking at the other implementations, e.g. the neomutt script it looks like this uses
login_hint
, which doesn't seem to be used by lieer. But I don't know the API that well and could be wrong. Is this something that could be implemented more or less easily if my assumption is right?