IServiceTokenHandler.TryValidateSchedulerToken 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.
Validates a string representation of a mobile service authentication token used to authenticate a request targeting a IScheduledJob.
public bool TryValidateSchedulerToken (string token, string secretKey, out System.Security.Claims.ClaimsPrincipal claimsPrincipal);
abstract member TryValidateSchedulerToken : string * string * ClaimsPrincipal -> bool
Public Function TryValidateSchedulerToken (token As String, secretKey As String, ByRef claimsPrincipal As ClaimsPrincipal) As Boolean
Parameters
- secretKey
- String
The secret key with which the token has been signed.
- claimsPrincipal
- ClaimsPrincipal
The resulting ClaimsPrincipal if the token is valid; null otherwise.
Returns
true
if token
is valid; otherwise false
/
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET