Comments (4)
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.
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.
the commit for this use case (you can also use directly the fork): ag91@3f77c06
from m365-imap.
I tried your patch and it works. Many thanks
from m365-imap.
Related Issues (16)
- A question and a suggestion. HOT 1
- Invalid grant HOT 4
- 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
- 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
- Support for exim SMTP (and also refresh token expiry) HOT 7
- Login fails with M365 Family account HOT 1
- Redirect: http://localhost:5000/getToken - Nothing open on this port on macOS HOT 1
- upgrade to python3-pyparsing version 3.1.1-1 gives AttributeError 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.