User Group for ITPro Women - kickoff meeting May 18, 3pm EST

Copper Contributor

Hi All,

 

Here my scenario 

 

I have developed Web API in azure whose purpose is doing some data operations. 

 

I have Call this APi from sharepoint CEWP javascript (Ajax Call)  the only issue is that that API is run at the moment with  Specific User Now I want to run this API with Current Contex User

 

So is there any way to get Current Logged in User tocken  or any othe way run API with CurrentContext of Sharepoint

your help is highly appreciated 

Thank You,

 

1 Reply

@Piyush Solanki you can use ADAL  to authenticate your app. you may check this thread for more details