I use a provider hosted Apps, so need to work with an App Web and Lists.
Could anybody provide a code snippet to get ClientContext() of the App?
Can I do something like this?
Uri appWeb = new Uri(HttpContext.Current.Request.QueryString["SPAppWebUrl"]);
using (var clientContext = TokenHelper.GetS2SClientContextWithWindowsIdentity(appWeb, HttpContext.Current.Request.LogonUserIdentity))
{
...
}