[Users] Microsoft Live (hotmail) oauth2 authentication always fails

David Fletcher David at megapico.co.uk
Fri Jul 5 17:00:58 UTC 2024


Hi Ettore,

Try running claws from a terminal with debug output, that should show
what's happening. From version 4.2 on Mac I get the code below (note I
had no ClientID configured for Outlook here as I don't use it on this
computer - I terminated the authorisation process without completing it
but you can see the relevant parts about the listener). Your findings on
Linux should be similar and show each stage of the listener process so
we can see what's wrong. Post back what you get.

/opt/homebrew/bin/claws-mail --debug

utils.c:2633:execute_command_line(): executing:
/Applications/Firefox.app/Contents/MacOS/firefox
'https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=&redirect_uri=http%3A%2F%2F127.0.0.1%3A8888&response_type=code&scope=offline_access%20https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%20https%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%20https%3A%2F%2Foutlook.office.com%2FSMTP.Send&tenant=common&response_mode=query'

prefs_account.c:5208:Starting oauth2 listener task
prefs_account.c:6103:oauth2 listener task running
prefs_account.c:6114:oauth2 listener socket created
prefs_account.c:6130:oauth2 listener bind done
prefs_account.c:6135:oauth2 listener waiting for incoming connections...
prefswindow.c:135:prefs window closed
prefs_account.c:3849:Closing oauth2 listener task
prefs_account.c:4724:called inc_unlock (lock count 1)
prefs_account.c:6188:oauth2 closing task
prefs_account.c:6237:oauth2 listener callback freeing resources
file-utils.c:58:TIMING : 0s000ms
passwordstore.c:449:Writing password store...

David.


More information about the Users mailing list