I need to call custom web APIs secured with Azure AD from my SharePoint 2019 on-premise SharePoint Framework solutions. As far as I know, this scenario and calling graph APIs are only supported in SharePoint Online.

I was following the article. It has mentioned to add webApiPermissionRequests key in package-solution.js. But, after adding the webApiPermissionRequests key, package failed to deploy in app catalog with error "Error in the application".

1 Answer 1


On-prem SharePoint uses SPFx 1.4.1, so you cannot use AadTokenProvider, meaning you need to use ADAL JS, see instructions here.

webApiPermissionRequests refers to AadTokenProvider which in turn requires SPFx 1.6.0+, thus is not currently supported on on-prem SP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.