Dela via


IServiceTokenHandler.TryValidateSchedulerToken Method

Definition

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

token
String

A String representation of the authentication token to validate.

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