Using Identitity token to authenticate to REST API and SharePoint ClientContext

  • Thread starter Thread starter Richard Scannell
  • Start date Start date
R

Richard Scannell

Guest
I have used the following tutorial
Add Microsoft identity platform sign-in to an ASP.NET web app to authenticate to Azure AD and to retrieve a set of claims about my credential.


EG
var userClaims = User.Identity as System.Security.Claims.ClaimsIdentity;
string accessToken = userClaims?.FindFirst( "access_token")?.Value;

Can anyone point me to a tutorial / code that lets me use the userClaims to provide authentication to the following:

C# >>> http post or get via WebClient / HttpClient ? request or equivalent

C# >>> SharePoint Online ClientContext

Jquery / Javascript / AngularJS Http get / post

Thank you.

PS.If think that this is relevant for this forum, please do advise what forum it should go in.

Thanks again.


regards Richard



Richard

Continue reading...
 
Back
Top