I’m new to sharepoint and right now I’m stuck with some specific issue, which I can't find any solution on web. So, the point is that I have two apps: first one is sharepoint hosted app with domain like:
And web part app inside of it with domain like:
Which is implemented like normal html page, using standard languages like: html, css, js + angularJs framework.
The point is that I have to consume office365Video api from web part app level, for pulling videos for actual logged in user. And there is the complicated part which I can’t figure out how to do it.
The endpoint to get movies should look like that:
And when I fire something like this:
Its working well but when I try to do something like:
I got of course 403: Forbidden “-2147024891, System.UnauthorizedAccessException”
So I predict the problem is that my host domain store authorization cookies and web part domain can’t see it. And consider to this link :
- I’m right:
I already know that the App is registered on Azure Active Directory App, and there is something like Client ID and subscription ID. But I don’t want to use it. I want to use already logged in user credentials.
How can I obtain these tokens? Credentials? To be authorized.
PS. Sorry for my english - it is not my primary language :)