| IJwtTokenServiceTryParseToken Method |
Parses and validates a JWT token provided by tokenString parameter.
Namespace: CMS.Base.InternalAssembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntaxbool TryParseToken(
string tokenString,
out ClaimsPrincipal claimsPrincipal,
out bool tokenExpired
)
Parameters
- tokenString
- Type: SystemString
Token string encoded as JWE or JWS. - claimsPrincipal
- Type: System.Security.ClaimsClaimsPrincipal
Claims-based identity parsed from token. - tokenExpired
- Type: SystemBoolean
Returns True when tokenString has expiration time in the past.
Return Value
Type:
BooleanReturns
True whether the operation succeeded.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Throws when tokenString is null or whitespace. |
See Also