Comments (5)
@harishkrupo Thanks so much for tracking that down - I'm barely comfortable finding relevant code on github, and I'm less familiar with sourceforge (also, not knowing a lick of C doesn't help either). This is a good starting place - it might take me a while and I might have to learn a lot to work it out, but I at least have an idea of where to start looking.
I'll post anything I figure out here.
from oauth2ms.
Comparing with the logs that you pasted, looks like this line in the mbsync code fails and here it looks like they are checking if xoauth2 is supported by sasl before trying that method. This probably means that the xoauth2 library is loaded correctly. I am not sure what else could be causing this. You can try the below options to debug further:
- One option would be try the troubleshooting options given here: https://www.cyrusimap.org/sasl/sasl/sysadmin.html#troubleshooting.
- Another definite way to figure out the reason would be to build debug versions of mbsync/cyrus-sasl/cyrus-sasl-xoauth2 yourself and try to step through the code. This might be a bit difficult and time consuming but will certainly help you solve the problem
Sorry, I don't use MacOS so I am unable to help much. Let me know if you find the solution, It will help others too. If you are stuck somewhere, please post here. I might be able to help :)
Note: --encode-xoath2
is not needed for passcmd
. The token is encoded internally.
from oauth2ms.
Hi! Wondering if anyone figured anything out. I would love to use this plugin on Mac OS.
from oauth2ms.
bump, same issue here... @jpowellrussell did you ever resolve this?
from oauth2ms.
I think I've got a lead on this one (despite also sucking at C). Try to 1) run mbsync despite the error, and then 2) check your syslog file; since I am using linux mint for me that's less /var/log/syslog
. You should see this message
mypcname sasl-xoauth2: auth failed: 2022-07-24 18:05:22: TokenStore::Read: failed to open file <<my token>>
My conclusion is that the sasl-xoauth2 plugin is waiting for a file but is receiving the token from oauth2ms in another format (a string perhaps) and thus returns an error. Any thoughts?
from oauth2ms.
Related Issues (20)
- issue during setup after authentication HOT 14
- How to setup SMTP if one knows the access token already? HOT 6
- device code flow
- Support writing to/reading from keyring
- urllib3.exceptions.LocationParseError: Failed to parse HOT 1
- Problem configuring URLs for Office365 HOT 3
- Alternative to obtain tenant ID and client ID and secret HOT 6
- "AADSTS700025: Client is public so neither 'client_assertion' nor 'client_secret' should be presented. HOT 1
- NO AUTHENTICATE HOT 6
- Sending failed SMTPclient is disabled for the tenant HOT 2
- Adding smtp after using oauth2 for imap HOT 3
- O365 Authentication Issues HOT 3
- Using a public id HOT 2
- TypeError: 'NoneType' object is not subscriptable HOT 2
- mbsync IMAP command 'NAMESPACE' returned an error: BAD User is authenticated but not connected. HOT 3
- Mac install HOT 1
- Sending Emails Fails HOT 4
- 'NoneType' object is not subscriptable HOT 8
- Multi-account support implementation HOT 8
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 oauth2ms.