#46 Connect your app to Microsoft 365 with just 4 lines of code

#46 Connect your app to Microsoft 365 with just 4 lines of code

Using Microsoft Graph Toolkit is the easiest way to connect your app to Microsoft 365. Toolkit's components and authentication providers abstract away implementing authentication, managing access tokens, building and executing requests to Microsoft Graph and handling exceptions. All that, so that you can focus on what truly matters - adding value to your users.

How much does Microsoft Graph Toolkit simplify connecting apps to Microsoft Graph? - you might ask. You can build an app showing events from your calendar on Microsoft 365 with just four additional lines of code. I'm not exaggerating! And this is just one example!

The team behind Microsoft Graph Toolkit has just released a new version of the toolkit (v2.2) with some significant features and improvements:

  • new file components that allow you to easily show files stored in Microsoft 365 in your app
  • new MSAL 2 provider with support for PKCE. This is very important because PKCE is considered more secure than the OAuth implicit flow we had to use previously.
  • improved support for SharePoint Framework solutions. You can now use MGT v2.2 in your web parts and extensions without any limitations

If you want to know more about the latest release, check out the announcement. And if you didn't have a chance to try MGT yet, I'd strongly recommend that you take the MGT learning path on MS Learn.

Do you use Microsoft Graph Toolkit yet? What do you think of it? Let me know!

Comments

comments powered by Disqus