IServiceTokenHandler.TryValidateLoginToken Method (String, String, ClaimsPrincipal)
Validates a string representation of a mobile service authentication token used to authenticate a user request.
Namespace: Microsoft.WindowsAzure.Mobile.Service.Security
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Syntax
bool TryValidateLoginToken(
string token,
string secretKey,
out ClaimsPrincipal claimsPrincipal
)
bool TryValidateLoginToken(
String^ token,
String^ secretKey,
[OutAttribute] ClaimsPrincipal^% claimsPrincipal
)
abstract TryValidateLoginToken :
token:string *
secretKey:string *
claimsPrincipal:ClaimsPrincipal byref -> bool
Function TryValidateLoginToken (
token As String,
secretKey As String,
<OutAttribute> ByRef claimsPrincipal As ClaimsPrincipal
) As Boolean
Parameters
token
Type: System.StringA String representation of the authentication token to validate.
secretKey
Type: System.StringThe secret key with which the token has been signed.
claimsPrincipal
Type: System.Security.Claims.ClaimsPrincipalThe resulting ClaimsPrincipal if the token is valid; null otherwise.
Return Value
Type: System.Boolean
true if token is valid; otherwise false /
See Also
IServiceTokenHandler Interface
Microsoft.WindowsAzure.Mobile.Service.Security Namespace
Return to top