Table of contents
TOC
Collapse the table of content
Expand the table of content

WebAPIContext Class

SharePoint Dev Documents|Last Updated: 5/18/2017
|
1 Contributor

This class holds the information that's passed from the SharePoint app to the "Register" WebAPI service call

Namespace:OfficeDevPnP.Core.WebAPI
Assembly: OfficeDevPnP.Core.dll

Inheritance Hierarchy

System.Object

Syntax

public class WebAPIContext

Constructors

NameDescription
WebAPIContext()This class holds the information that's passed from the SharePoint app to the "Register" WebAPI service call

Properties

NameDescription
AppWebUrlUrl if the SharePoint app web. Needed to obtain an access token
CacheKeyThe cacheKey that will be used. The cache key is unique for each combination of user name, user name issuer, application, and farm.
ClientIdClientId of the SharePoint app that's being registered. Needed to obtain an access token
ClientSecretClientSecret of the SharePoint app that's being registered. Needed to obtain an access token
HostedAppHostNameIf the AppWebUrl is null then this value will be used. Needed to obtain an access token
HostWebUrlUrl of the SharePoint host web. Needed to obtain an access token
TokenThe SharePoint context token. This will be used at the WebAPI level to obtain an access token

See also

© 2018 Microsoft