IServiceTokenHandler.TryValidateLoginToken Method

Definition

Validates a string representation of a mobile service authentication token used to authenticate a user request.

public bool TryValidateLoginToken (string token, string secretKey, out System.Security.Claims.ClaimsPrincipal claimsPrincipal);
abstract member TryValidateLoginToken : string * string * ClaimsPrincipal -> bool
Public Function TryValidateLoginToken (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