Closed Paolo-Erre closed 4 months ago
An invalid or unexpected response was provided by the server. This is the sort of thing that is best investigated via a test account in your O365. Is this something you can provide?
Sent details to your mail.
Thanks,
Paolo
Sent: Thursday, April 04, 2024 at 5:26 PM From: "Simon Robinson" @.> To: "simonrob/email-oauth2-proxy" @.> Cc: "Paolo-Erre" @.>, "Author" @.> Subject: Re: [simonrob/email-oauth2-proxy] Got JSONDecodeError (Issue #240)
An invalid or unexpected response was provided by the server. This is the sort of thing that is best investigated via a test account in your O365. Is this something you can provide?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Thanks – in the end it was not something that required the test account, but a misconfiguration: you've used the wrong token url:
token_url = https://login.microsoftonline.com/###tenantID###/oauth2/v2.0/authorize
This value should be:
token_url = https://login.microsoftonline.com/###tenantID###/oauth2/v2.0/token
I.e., token rather than authorize. With this change, your test account works fine from my side.
Yesss!!!
It's working now!
Thanks!
Trying to access Exchange Online mailbox using Outlook in POP3 mode.
I used this tutorial to create AAD App Registration: https://github.com/lakelse/videos/tree/master/04-install-email-oauth2-proxy-youtube
And with this emailproxy.config:
I got the error (in emailproxy.log debug mode): Caught exception while requesting OAuth 2.0 credentials for ###@###.###: JSONDecodeError('Expecting value: line 3 column 1 (char 4)')
What's wrong?
Thanks, Paolo