IServiceTokenHandler::TryValidateLoginToken Method (String^, String^, ClaimsPrincipal^%)
Validates a string representation of a mobile service authentication token used to authenticate a user request.
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
bool TryValidateLoginToken(
String^ token,
String^ secretKey,
[OutAttribute] ClaimsPrincipal^% claimsPrincipal
)
Parameters
- token
-
Type:
System::String^
A String representation of the authentication token to validate.
- secretKey
-
Type:
System::String^
The secret key with which the token has been signed.
- claimsPrincipal
-
Type:
System.Security.Claims::ClaimsPrincipal^%
The resulting ClaimsPrincipal if the token is valid; null otherwise.
Show: