How to implement EWS API for connecting Outlook on-premise user's calendar data

Aliraza HN 5 Reputation points
2024-08-12T14:13:18.1033333+00:00

Our website(which is built on Rails framework) has Outlook calendar integration through which our client's user can connect their Outlook calendar & then we fetch or push events to their Outlook calendar,

Currently, we are using this API for authenticating users on Outlook: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=#{AZURE_APP_CLIENT_ID}&redirect_uri=https://our_website.com/auth/microsoft_graph_auth/callback&response_mode=query&response_type=code&scope=calendars.readwrite%20offline_access&state=encrypted_code

Once a user is authenticated we fetch all events using this API: 'https://graph.microsoft.com/v1.0/me/calendarView'

But the problem is some of our clients have "Outlook on-premise" instead of normal cloud-based Outlook, How do we connect users with their Outlook on-premise account, What changes will we have to make in the above implementation? Please see I am completely new in this & don't have in-depth knowledge

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,337 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,273 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
547 questions
{count} vote

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.