C# Class ProviderHostedAppPartsWeb.SharePointContextToken

A JsonWebSecurityToken generated by SharePoint to authenticate to a 3rd party application and allow callbacks using a refresh token
Inheritance: JsonWebSecurityToken
Mostra file Open project: CriticalPathTraining/SharePointAddinDemos Class Usage Examples

Public Methods

Method Description
Create ( JsonWebSecurityToken contextToken ) : SharePointContextToken
SharePointContextToken ( string issuer, string audience, System.DateTime validFrom, System.DateTime validTo, IEnumerable claims ) : System
SharePointContextToken ( string issuer, string audience, System.DateTime validFrom, System.DateTime validTo, IEnumerable claims, System.IdentityModel.Tokens.SecurityToken issuerToken, JsonWebSecurityToken actorToken ) : System
SharePointContextToken ( string issuer, string audience, System.DateTime validFrom, System.DateTime validTo, IEnumerable claims, System.IdentityModel.Tokens.SigningCredentials signingCredentials ) : System

Private Methods

Method Description
GetClaimValue ( JsonWebSecurityToken token, string claimType ) : string

Method Details

Create() public static method

public static Create ( JsonWebSecurityToken contextToken ) : SharePointContextToken
contextToken JsonWebSecurityToken
return SharePointContextToken

SharePointContextToken() public method

public SharePointContextToken ( string issuer, string audience, System.DateTime validFrom, System.DateTime validTo, IEnumerable claims ) : System
issuer string
audience string
validFrom System.DateTime
validTo System.DateTime
claims IEnumerable
return System

SharePointContextToken() public method

public SharePointContextToken ( string issuer, string audience, System.DateTime validFrom, System.DateTime validTo, IEnumerable claims, System.IdentityModel.Tokens.SecurityToken issuerToken, JsonWebSecurityToken actorToken ) : System
issuer string
audience string
validFrom System.DateTime
validTo System.DateTime
claims IEnumerable
issuerToken System.IdentityModel.Tokens.SecurityToken
actorToken JsonWebSecurityToken
return System

SharePointContextToken() public method

public SharePointContextToken ( string issuer, string audience, System.DateTime validFrom, System.DateTime validTo, IEnumerable claims, System.IdentityModel.Tokens.SigningCredentials signingCredentials ) : System
issuer string
audience string
validFrom System.DateTime
validTo System.DateTime
claims IEnumerable
signingCredentials System.IdentityModel.Tokens.SigningCredentials
return System