AppServiceTokenHandler.TryValidateToken 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.
Important
This API is not CLS-compliant.
[System.CLSCompliant(false)]
public static bool TryValidateToken (System.IdentityModel.Tokens.TokenValidationParameters validationParameters, string tokenValue, string secretKey, out System.Security.Claims.ClaimsPrincipal claimsPrincipal);
[<System.CLSCompliant(false)>]
static member TryValidateToken : System.IdentityModel.Tokens.TokenValidationParameters * string * string * ClaimsPrincipal -> bool
Public Shared Function TryValidateToken (validationParameters As TokenValidationParameters, tokenValue As String, secretKey As String, ByRef claimsPrincipal As ClaimsPrincipal) As Boolean
Parameters
- validationParameters
- System.IdentityModel.Tokens.TokenValidationParameters
- tokenValue
- String
- secretKey
- String
- claimsPrincipal
- ClaimsPrincipal
Returns
- Attributes
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