LoginProvider.CreateTokenInfo Method

Definition

Creates the final login token using the specified inputs. Derived classes can override to customize the login token produced.

protected virtual Microsoft.WindowsAzure.Mobile.Service.Security.TokenInfo CreateTokenInfo (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.WindowsAzure.Mobile.Service.Security.ProviderCredentials credentialsClaim, string secretKey);
abstract member CreateTokenInfo : System.Security.Claims.ClaimsIdentity * Microsoft.WindowsAzure.Mobile.Service.Security.ProviderCredentials * string -> Microsoft.WindowsAzure.Mobile.Service.Security.TokenInfo
override this.CreateTokenInfo : System.Security.Claims.ClaimsIdentity * Microsoft.WindowsAzure.Mobile.Service.Security.ProviderCredentials * string -> Microsoft.WindowsAzure.Mobile.Service.Security.TokenInfo
Protected Overridable Function CreateTokenInfo (claimsIdentity As ClaimsIdentity, credentialsClaim As ProviderCredentials, secretKey As String) As TokenInfo

Parameters

claimsIdentity
ClaimsIdentity

The current logged in identity.

credentialsClaim
ProviderCredentials

The provider credentials value to include in the token claims.

secretKey
String

The secret key to sign the token with.

Returns

An initialized TokenInfo.

Applies to