Comments (7)
Please ignore my previous comment :-) I replied to the email copy without the context, and now realise that it was about M365-IMAP and not about oauthForExim.
from m365-imap.
Yes, I think that would be useful! I'm not sure how refresh token expiry works in practice but renewing the token every so often is probably a good idea in any case.
from m365-imap.
I have now uploaded my project to github:
oauth2ForExim.
It is designed to be used alongside M365-IMAP although it can be used independently.
It caches both the refresh and access tokens. And looks after refresh token expiry by
renewing the refresh token periodically. Currently roughly once a month.
The README.md file gives more detail.
from m365-imap.
s/github/gitlab/g !!
from m365-imap.
I just encountered refresh token expiry in my .offlinimaprc file for the first time. Fortunately I had a current refresh token cached in oauth2ForExim, so it was trivial to copy for offlineimaprc. offlineimap ddin't give a very clear message.
from m365-imap.
Ideally, the code should try
to detect xoauth2
login failure, and catch
when the reason is expired token, renew it, and try again!
from m365-imap.
from m365-imap.
Related Issues (16)
- A question and a suggestion. HOT 1
- Add a license HOT 4
- Stopped working and I get Bad request from offlineimap HOT 2
- new config option for tenantid should only use it if provided HOT 3
- isync/mbsync configuration
- Minor comment: where is tenant defined? HOT 1
- Login fails with M365 Family account HOT 1
- Thunderbird client ID changed. Thunderbird now uses `https` in the redirect. HOT 4
- Redirect: http://localhost:5000/getToken - Nothing open on this port on macOS HOT 1
- Invalid grant HOT 4
- upgrade to python3-pyparsing version 3.1.1-1 gives AttributeError HOT 2
- Do you have a solution for Emacs' SMTP? HOT 15
- Filter out Calendar and Contacts HOT 1
- An alternative implementation for multiple providers. HOT 2
- User is authenticated but not connected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m365-imap.