gattocarlo |
04-23-2024 04:01 AM |
Quote:
Originally Posted by RandomTroll
(Post 6489593)
Yes. I finally figured out how I was supposed to try to get it to work. I logged into portal.azure.com, tried to register the app to get the client_id and client_secret. azure replied that my 'tenant' didn't allow this. I got it to work for another domain, for which I don't need it, which worked. I tried using the id and secret of the second domain for the first, but that didn't.
|
you could use getmail6 (similar to fetchmail and comes with slackware): you need to use a mutt script (present ins slackware: mutt_oauth2.py) to retrieve a refresh token and, feeding it to getmail, get an authorization token to retrieve your mail.
as you said to get the refresh token you need to have an approved client_id and client_secret. the manager of your account could approve it, but if it doesn't you will not be able to access your mail with a non approved client. this is what oauth2 is all about : controlling the client.
if thunderbird works you could use its credentials (client_id and client_secret) with mutt (and, with the refresh token use getmail), but retrieving the refresh token this way may be tricky.
with gmail I was able to get my client id and client secret and use it with my university email account, but my university, so far, does not discriminate between good and bad clients...
hope this helps (but I do not think so).
|