IServiceTokenHandler::CreateTokenInfo Method (ClaimsIdentity^, ProviderCredentials^, TimeSpan, String^)
Creates a TokenInfo containing a security token to be used as part of the Mobile Service authentication process.
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
TokenInfo^ CreateTokenInfo( ClaimsIdentity^ claimsIdentity, ProviderCredentials^ providerCredentials, TimeSpan lifetime, String^ secretKey )
Parameters
- claimsIdentity
-
Type:
System.Security.Claims::ClaimsIdentity^
The set of claims to include in the token.
- providerCredentials
-
Type:
Microsoft.WindowsAzure.Mobile.Service.Security::ProviderCredentials^
The ProviderCredentials to include as part of the token.
- lifetime
-
Type:
System::TimeSpan
A TimeSpan indicating how long the token is valid for.
- secretKey
-
Type:
System::String^
The secret key to sign the token with.
Return Value
Type: Microsoft.WindowsAzure.Mobile.Service.Security::TokenInfo^A TokenInfo containing a security token.
Show: