on-behalf-of flow

Pass user’s identity and authorization from an SPFx web part to an Azure Function to another web API using OAuth 2.0 On-Behalf-Of flow

There are many use cases which you need to call a service/web API from another Web API and it requires to propagate the delegated user identity and permissions through the request chain. OAuth 2.0 On-Behalf-Of flow helps you to authorize access from the gateway to the downstream APIs without losing trace of the user. In this post I will show you how to use a SharePoint Framework web part as a client application communicates with…

permissions

SFPx consuming Dynamics 365 CRM API

We usually building a SharePoint Framework solution that requires access to specific resources secured with Azure AD such as Microsoft Graph, Yammer, and Dynamic CRM. In this post I will show you how you can consume Dynamics CRM API from an SPFx web part. Dynamics 365 30-day Trial If you don’t already have a Dynamics 365 environment, you can sign up for a 30-day trial from here. API permissions To be abe to obtain the…

Office Add-in and MSAL

Office Add-ins: Get consent for several resources using MSAL

In this blog post we will see how to setup MSAL to get consent for several resources in an office add-in to get access to Microsoft Graph, SharePoint and a secured Azure functions. If you are looking for the source code, you can find it here 🙂 Create a word add-in project First we need to install Yeoman (as a prerequisites) and generator-office to create an office add-ins: Then run following command and create a…

Using OfficeDev PnP to add/update modern quick links web part

In this blog post I will explain how you can add or update Quick links web part using PnP Core, source code can be found here. Recently I’ve had a challenge to add and update Quick links web part, but turned out it’s not as easy as I thought it would be, there are couple of disussions around it which you can find here and here. Adding Quick links web part For adding quick link…