MojoDK
MojoDK

Reputation: 4528

Silently log onto Microsoft Graph?

Since I have my users log in and password, can I silently log into their Microsoft Graph?

I want to fetch info from Office 365 API from a server app, so therefor I cannot have a Microsoft Login Window popping up.

Thanks

Upvotes: 0

Views: 747

Answers (1)

Jon Knight
Jon Knight

Reputation: 169

You want to use the confidential client flow for authenticating the Graph API. See the section "Daemon or Server Application to Web API" in this document for details. Of course you'll need to be the admin of you Azure AD, or have the admin's trust and blessing, in order to use this flow as the user isn't involved in the process themselves.

I've been trying to use it for calendaring apps. The flow login works fine but be aware that there are some limitations on using the Graph API with this authentication flow type (specifically interacting with Unified Groups calendars in my case).

Upvotes: 1

Related Questions