GithubHelp home page GithubHelp logo

Comments (4)

ikuraj avatar ikuraj commented on August 10, 2024 1

I solved this by manually copying the code and getting it into the script, skipping the https response parsing part.

Yes, no more ClientSecret it seems.

from m365-imap.

redbrain17 avatar redbrain17 commented on August 10, 2024

I have tried the following changes without success:

--- a/config.py
+++ b/config.py
@@ -1,5 +1,5 @@
-ClientId = "08162f7c-0fd2-4200-a84a-f25a4db0b584"
-ClientSecret = "TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82"
+ClientId = "9e5f94bc-e8a4-4e73-b8be-63364c29d753"
+ClientSecret = ""
 Scopes = ['https://outlook.office.com/IMAP.AccessAsUser.All','https://outlook.office.com/SMTP.Send']
 RefreshTokenFileName = "imap_smtp_refresh_token"
 AccessTokenFileName = "imap_smtp_access_token"
diff --git a/get_token.py b/get_token.py
index 998ffd6..e16f429 100644
--- a/get_token.py
+++ b/get_token.py
@@ -8,7 +8,7 @@ import urllib.parse
 import webbrowser


-redirect_uri = "http://localhost:8745/"
+redirect_uri = "https://localhost/"

 # We use the cache to extract the refresh token
 cache = SerializableTokenCache()

I manually changed the port in the browser bar afterwards to listen port of m365-imap. The request itself seemed successfull. But I can't use the resulting RefreshToken in offlineimap. So something is missing here.

Is it correct that there is no more ClientSecret?

from m365-imap.

ag91 avatar ag91 commented on August 10, 2024

the commit for this use case (you can also use directly the fork): ag91@3f77c06

from m365-imap.

redbrain17 avatar redbrain17 commented on August 10, 2024

I tried your patch and it works. Many thanks

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.