Class SharePointContextToken
A JsonWebSecurityToken generated by SharePoint to authenticate to a 3rd party application and allow callbacks using a refresh token
Inheritance
System.Object
System.IdentityModel.Tokens.SecurityToken
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken
SharePointContextToken
Inherited Members
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.CaptureSourceData(System.String)
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.ToString()
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.WriteSourceData()
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.CreatePayloadClaims()
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.CreateHeaderClaims()
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.ActorToken
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.Audience
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.CanWriteSourceData
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.Claims
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.Id
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.Issuer
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.IssuerToken
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.SecurityKeys
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.SigningCredentials
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.ValidFrom
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken.ValidTo
System.IdentityModel.Tokens.SecurityToken.CanCreateKeyIdentifierClause<T>()
System.IdentityModel.Tokens.SecurityToken.CreateKeyIdentifierClause<T>()
System.IdentityModel.Tokens.SecurityToken.MatchesKeyIdentifierClause(System.IdentityModel.Tokens.SecurityKeyIdentifierClause)
System.IdentityModel.Tokens.SecurityToken.ResolveKeyIdentifierClause(System.IdentityModel.Tokens.SecurityKeyIdentifierClause)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:AzureFunctionsForSharePoint.Common
Assembly:AzureFunctionsForSharePoint.Common.dll
Syntax
public class SharePointContextToken : JsonWebSecurityToken
Constructors
| Improve this Doc View SourceSharePointContextToken(String, String, DateTime, DateTime, IEnumerable<JsonWebTokenClaim>)
Declaration
public SharePointContextToken(string issuer, string audience, DateTime validFrom, DateTime validTo, IEnumerable<JsonWebTokenClaim> claims)
Parameters
Type | Name | Description |
---|---|---|
System.String | issuer | |
System.String | audience | |
System.DateTime | validFrom | |
System.DateTime | validTo | |
System.Collections.Generic.IEnumerable<Microsoft.IdentityModel.S2S.Tokens.JsonWebTokenClaim> | claims |
SharePointContextToken(String, String, DateTime, DateTime, IEnumerable<JsonWebTokenClaim>, SecurityToken, JsonWebSecurityToken)
Declaration
public SharePointContextToken(string issuer, string audience, DateTime validFrom, DateTime validTo, IEnumerable<JsonWebTokenClaim> claims, SecurityToken issuerToken, JsonWebSecurityToken actorToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | issuer | |
System.String | audience | |
System.DateTime | validFrom | |
System.DateTime | validTo | |
System.Collections.Generic.IEnumerable<Microsoft.IdentityModel.S2S.Tokens.JsonWebTokenClaim> | claims | |
System.IdentityModel.Tokens.SecurityToken | issuerToken | |
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken | actorToken |
SharePointContextToken(String, String, DateTime, DateTime, IEnumerable<JsonWebTokenClaim>, SigningCredentials)
Declaration
public SharePointContextToken(string issuer, string audience, DateTime validFrom, DateTime validTo, IEnumerable<JsonWebTokenClaim> claims, SigningCredentials signingCredentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | issuer | |
System.String | audience | |
System.DateTime | validFrom | |
System.DateTime | validTo | |
System.Collections.Generic.IEnumerable<Microsoft.IdentityModel.S2S.Tokens.JsonWebTokenClaim> | claims | |
System.IdentityModel.Tokens.SigningCredentials | signingCredentials |
Properties
| Improve this Doc View SourceCacheKey
The context token's "CacheKey" claim
Declaration
public string CacheKey { get; }
Property Value
Type | Description |
---|---|
System.String |
NameId
Declaration
public string NameId { get; }
Property Value
Type | Description |
---|---|
System.String |
Realm
The realm portion of the context token's "audience" claim
Declaration
public string Realm { get; }
Property Value
Type | Description |
---|---|
System.String |
RefreshToken
The context token's "refreshtoken" claim
Declaration
public string RefreshToken { get; }
Property Value
Type | Description |
---|---|
System.String |
SecurityTokenServiceUri
The context token's "SecurityTokenServiceUri" claim
Declaration
public string SecurityTokenServiceUri { get; }
Property Value
Type | Description |
---|---|
System.String |
TargetPrincipalName
The principal name portion of the context token's "appctxsender" claim
Declaration
public string TargetPrincipalName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreate(JsonWebSecurityToken)
Declaration
public static SharePointContextToken Create(JsonWebSecurityToken contextToken)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityToken | contextToken |
Returns
Type | Description |
---|---|
SharePointContextToken |