Skip to main content
Kofax

Sample configuration for IMAP and POP3 using Oauth2 authentication for polling emails from Exchange Online in KIC

Article # 3050008 - Page views: 358

Issue

How to configure IMAP (&POP3) email polling using OAuth2 authentication in KIC.

Solution

This is a sample setup for polling emails from Exchange Online via IMAP (&POP3) using Oauth2 authentication.
The main focus will be on IMAP but with slight changes, this sample setup can also be used for POP3.

The used (and supported) grant method for this is the Authorization Code Grant.

Using the Authorization Code Grant, you can choose between 2 Platform types on Azure. Pick only 1.

  • Web Platform (To use your own custom Redirect URI, Requires a Client Secret)
  • Mobile and desktop applications Platform (No Client Secret needed)
General Azure setup

IMAP and POP Auth Code - Application Overview.png

Here you can see the 2 possible Platforms: "Mobile and desktop applications" & "Web"
Pick the one you want to use for your setup.

IMAP and POP Auth Code - Authentication Desktop and Web Platform and Redirect URI.png

The Client Secret is only required when using the "Web Platform".

IMAP and POP Auth Code - Secret.png

This list of permissions contains both the "IMAP.AccessAsUser.All" & "POP.AccessAsUser.All" permissions.
If e.g. POP3 access is not desired, don't add the "POP.AccessAsUser.All" permission.

IMAP and POP Auth Code - Permissions.png

KIC settings for using the Web Platform

Here you can find the settings for connecting to Exchange Online via IMAP and POP3. (Link)

KIC 2.9

IMAP and POP Auth Code - KIC OAuth settings - Web Platform.png

KIC 2.10

IMAP and POP Auth Code - KIC 2.10 web.png

KIC settings for using the Mobile and desktop applications Platform

KIC 2.9

IMAP and POP Auth Code - KIC OAuth settings - Desktop Platform.png

KIC 2.10

IMAP and POP Auth Code - KIC 2.10 Mobile.png

 

Level of Complexity 

Moderate

 

Applies to  

Product Version Build Environment Hardware
Kofax Import Connector 2.9      
Kofax Import Connector 2.10      

 

Article # 3050008