How can I connect outlook to my imap server and authorize via oauth?

M M 1 Reputation point
2021-06-01T09:33:47.603+00:00

Hello.

I need to connect outlook to my imap server and authorize using oauth2 protocol.
But when I trying add account in outlook I can't choose oauth authorization method.

I have a configured imap server (dovecot), keycloak and ldap server with clients.

101356-temp.png

I think I need to write an outlook extension that will add the necessary parameters (client_id, client_secret, etc.) to call webview and get a token via keycloak.

I checked outlook api, but I cant see any api which can help me.

Is it possible?

What API should I use for this?

Thank you.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,058 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,345 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,829 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,846 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.