python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

Extracting access_token for use with fetchmail-7.0.0-alpha7

Open dthompson-uw opened this issue 4 years ago • 1 comments

I'm using the o365 module with the FileSystemTokenBackend. I'm extracting the text of the access_token from the token to use with the PasswordFile parameter of fetchmail-7.0.0-alpha7 in "auth oauthbearer" mode to pull mail from an o365 account, but the authentication is failing. Is there some kind of format conversation that I need to do, or should this be working? Thx, David

Apr 08 13:29:51 fetchmail: POP3< +OK The Microsoft Exchange POP3 service is ready. [QwBIADIAUABSADIAMABDAEEAMAAwADIANQAuAG4AYQBtAHAAcgBkADIAMAAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A] Apr 08 13:29:51 fetchmail: POP3> CAPA Apr 08 13:29:51 fetchmail: POP3< +OK Apr 08 13:29:51 fetchmail: POP3< TOP Apr 08 13:29:51 fetchmail: POP3< UIDL Apr 08 13:29:51 fetchmail: POP3< SASL PLAIN XOAUTH2 Apr 08 13:29:51 fetchmail: POP3< USER Apr 08 13:29:51 fetchmail: POP3< . Apr 08 13:29:51 fetchmail: POP3> AUTH XOAUTH2 Apr 08 13:29:51 fetchmail: POP3< + Apr 08 13:29:51 fetchmail: POP3> [SHROUDED] Apr 08 13:29:51 fetchmail: POP3< -ERR Authentication failure: unknown user name or bad password. Apr 08 13:29:51 fetchmail: Authentication failure: unknown user name or bad password.

dthompson-uw avatar Apr 08 '21 19:04 dthompson-uw

I have no clue

alejcas avatar Apr 19 '21 10:04 alejcas