Setting Up Canon Scanner for Email with OAuth2 and Microsoft

0
8
Asked By TechieGuru42 On

I'm trying to configure my Canon multifunction printer to scan documents directly to email using OAuth2 with Microsoft services, but I'm running into a roadblock. The scanner connects to smtp.office365.com over TLS without any issues. However, I keep getting a "Could not connect to the server" error when I attempt to set it up. I followed the instructions for creating an enterprise app in Microsoft 365, but the URL given in Canon's documentation seems outdated. The documentation states to use the authorization server endpoint like this: `https://login.microsoftonline.com//oauth2/v2.0`. I used the replacement `https://login.microsoftonline.com/common/oauth2/nativeclient` as the redirect URI for the enterprise app. Is there a specific server I'm supposed to connect to other than smtp.office365.com? What could be causing this connection error?

2 Answers

Answered By OfficeNinja88 On

First, double-check the spelling in your setup. You mentioned 'oath2' a couple of times, but it should be 'oauth2' with a 'u'. If you messed that up while entering it into the printer settings, that could be why it can't connect. Also, make sure you’re using the correct endpoints. The Authorization Endpoint should be `https://login.microsoftonline.com//oauth2/v2.0/authorize` and the Token Endpoint should be `https://login.microsoftonline.com//oauth2/v2.0/token`. The Redirect URI, like you noted, is `https://login.microsoftonline.com/common/oauth2/nativeclient`, which is what you should have in the Azure App Registration settings. Lastly, check the CA Certificates on the Canon’s web UI; if it's an older firmware, it might not trust Microsoft’s latest TLS certificates, which can lead to the connection failing.

Answered By PrinterPal101 On

Thanks for clarifying that! I had similar issues a while back. One tip is to verify that you’re not confusing the Endpoint with the Redirect URI. They are different things. And if the printer still doesn’t connect after correcting the spelling, it might be worth checking those CA Certificates, especially if your firmware is out of date. Good luck!

TechieGuru42 -

I appreciate the help! I went ahead and corrected the Auth endpoint to `https://login.microsoftonline.com/mytenantID/oauth2/v2.0/authorize`, but I'm still facing the 'could not connect to server' error. I haven’t found anything related to CA certificates on my Canon model either. I'll keep digging and check out that video tutorial you mentioned.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.