How can I connect OAuth APIM from SharePoint hosted addin?

Suresh Krishnasamy 1 Reputation point

I have created an APIM with OAuth. Using developer portal and Post man I can able to fetch the data from the APIM.
But I need to access that from my SharePoint Hosted Add-In?
How to generate token to get data from APIM? Plz suggest me on this.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,648 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,396 Reputation points

    @Suresh Krishnasamy ,

    Thanks for reaching out to Q&A.

    You can refer to the below articles that will guide you in connecting from Sharepoint hosted addin

    You can also explore using MSAL js in SP addin

    The sharepoint hosted addins are legacy and I would suggest using the SpFx :

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.