ServiceTokenHandler.TryValidateLoginToken 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 user request.
public virtual bool TryValidateLoginToken (string token, string secretKey, out System.Security.Claims.ClaimsPrincipal claimsPrincipal);
abstract member TryValidateLoginToken : string * string * ClaimsPrincipal -> bool
override this.TryValidateLoginToken : string * string * ClaimsPrincipal -> bool
Public Overridable Function TryValidateLoginToken (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
/
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET