GithubHelp home page GithubHelp logo

Comments (7)

clarified avatar clarified commented on August 10, 2024 1

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.

goomens avatar goomens commented on August 10, 2024

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.

clarified avatar clarified commented on August 10, 2024

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.

clarified avatar clarified commented on August 10, 2024

s/github/gitlab/g !!

from m365-imap.

clarified avatar clarified commented on August 10, 2024

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.

chris001 avatar chris001 commented on August 10, 2024

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.

clarified avatar clarified commented on August 10, 2024

from m365-imap.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.