Forum Discussion

Till Jakob's avatar
Till Jakob
Copper Contributor
May 12, 2017

Access SharePoint Online via JSOM and Auth Bearer Token

I know that I can access the Microsoft Graph with an Auth Bearer Token obtained from Azure AD. I know that I can access SharePoint Online with an Auth Bearer Token via CSOM as well. And I know that I can access SharePoint Online with an Auth Bearer Token via REST.

 

But can I also do that with JSOM? 

 

Is there a way to create in JSOM to create a SP.ClientContext object and set the Auth Bearer Token like it's done in CSOM?

 

Thanks!

Resources