Connect to on-premise API secured with Azure Active Directory

%3CLINGO-SUB%20id%3D%22lingo-sub-1635557%22%20slang%3D%22en-US%22%3EConnect%20to%20on-premise%20API%20secured%20with%20Azure%20Active%20Directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1635557%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20following%20this%20post%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fguidance%2Fconnect-to-api-secured-with-aad%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fguidance%2Fconnect-to-api-secured-with-aad%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20approved%20API%20from%20SharePoint%20admin%20center%20even%20though%20while%20debugging%20getting%20below%20mentioned%20error%20%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3Esp-webpart-workbench-assembly_default.js%3A39921%20Uncaught%20(in%20promise)%20Error%3A%20To%20view%20the%20information%20on%20this%20page%2C%20ask%20a%20global%20or%20SharePoint%20admin%20in%20your%20organization%20to%20go%20to%20the%20API%20management%20page%20in%20the%20new%20SharePoint%20admin%20center.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eat%20MockAadTokenProvider..%2Fsp-http.js.__WEBPACK_AMD_DEFINE_RESULT__.mXNH.MockAadTokenProvider.getToken%20(sp-webpart-workbench-assembly_default.js%3A39921)%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eat%20HelloWorldWebPart.ts%3A44%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%3EHas%20anyone%20done%20this%2C%20or%20know%20of%20a%20good%20article%20on%20how%20to%20do%20it%3F%3C%2FSPAN%3E%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1635557%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New Contributor

Hi,

I am following this post https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/connect-to-api-secured-with-...

 

I have approved API from SharePoint admin center even though while debugging getting below mentioned error :

sp-webpart-workbench-assembly_default.js:39921 Uncaught (in promise) Error: To view the information on this page, ask a global or SharePoint admin in your organization to go to the API management page in the new SharePoint admin center.
at MockAadTokenProvider../sp-http.js.__WEBPACK_AMD_DEFINE_RESULT__.mXNH.MockAadTokenProvider.getToken (sp-webpart-workbench-assembly_default.js:39921)
at HelloWorldWebPart.ts:44

 

Has anyone done this, or know of a good article on how to do it?

 

 

0 Replies