IServiceTokenHandler.CreateTokenInfo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a TokenInfo containing a security token to be used as part of the Mobile Service authentication process.
public Microsoft.WindowsAzure.Mobile.Service.Security.TokenInfo CreateTokenInfo (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.WindowsAzure.Mobile.Service.Security.ProviderCredentials providerCredentials, TimeSpan lifetime, string secretKey);
abstract member CreateTokenInfo : System.Security.Claims.ClaimsIdentity * Microsoft.WindowsAzure.Mobile.Service.Security.ProviderCredentials * TimeSpan * string -> Microsoft.WindowsAzure.Mobile.Service.Security.TokenInfo
Public Function CreateTokenInfo (claimsIdentity As ClaimsIdentity, providerCredentials As ProviderCredentials, lifetime As TimeSpan, secretKey As String) As TokenInfo
Parameters
- claimsIdentity
- ClaimsIdentity
The set of claims to include in the token.
- providerCredentials
- ProviderCredentials
The ProviderCredentials to include as part of the token.
- secretKey
- String
The secret key to sign the token with.
Returns
A TokenInfo containing a security token.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET