tarickb / sasl-xoauth2

SASL plugin for XOAUTH2
Other
72 stars 20 forks source link

TokenStore::Read: failed to open file #38

Closed averter closed 1 year ago

averter commented 1 year ago

I am trying to use this sasl-xoauth2 plugin together with oauth2ms as described here. In doing so it is assumed that installing sasl-xoauth2 or cyrus-sasl-xoauth2 is the same. As reported in this issue by checking /var/log/syslog the sasl-xoauth2 plugin is giving this error:

mypcname sasl-xoauth2: auth failed: 2022-07-24 18:05:22: TokenStore::Read: failed to open file <<my token>>

which suggests that sasl-xoauth2 is waiting for a file from oauth2ms? Any help in solving this issue is very welcome.

tarickb commented 1 year ago

sasl-xoauth2 and cyrus-sasl-xoauth2 are not the same, no. Please make sure you've followed the instructions in the sasl-xoauth2 README.

averter commented 1 year ago

Thanks @tarickb. After a lot of trial and error I was able to get cyrus-sasl-xoauth2 up and running — finally!

kunliugithub commented 1 year ago

Thanks @tarickb. After a lot of trial and error I was able to get cyrus-sasl-xoauth2 up and running — finally!

@averter I am facing the exact same issue you are describing here. Could you please let me know how you resolved it? Thanks.

tarickb commented 1 year ago

Please look through the debugging section of the README and attach logs (with credentials redacted).