Skip to main content
5 events
when toggle format what by license comment
Feb 10, 2017 at 12:44 vote accept Prashant Shah
Feb 10, 2017 at 4:52 comment added Prashant Shah While using above code ClientContex not getting "OAuth2AccessTokenResponse" from TokelHelper class file which is provider by Microsoft. Can you elaborate this reason?
Feb 9, 2017 at 12:30 comment added Esaki we can get the clientcontext like this: var contextToken = TokenHelper.GetContextTokenFromRequest(Page.Request); var hostWeb = Page.Request[“SPHostUrl”]; using (var clientContext = TokenHelper.GetClientContextWithContextToken(hostWeb, contextToken, Request.Url.Authority)) { clientContext.Load(clientContext.Web, web => web.Title, user => user.CurrentUser); clientContext.ExecuteQuery(); }
Feb 9, 2017 at 10:02 comment added Prashant Shah Hi... When I am deploying my app to Office 365 with Office 365 AppRegNew and respective web.config I am not able to take ClientContext object. In above link they are not using ClientContext. I am able to open site but I need to do operation further.
Feb 9, 2017 at 7:01 history answered Esaki CC BY-SA 3.0