TokenHelperCheckJwtAuthToken - метод
Verifies the provided JWT (JSON Web Token) using the specified key strategy.
This method validates the token's lifetime, signature, and specific algorithm used.
If the token is valid, it returns the parsed JWT token along with the corresponding public key.
Пространство имён: Tessa.TokensСборка: Tessa (в Tessa.dll) Версия: 4.1.5+a9a57e1eda0b57f197e0c68d2aa7d7dc95b6c424
public static (JwtSecurityToken SecurityToken, DiscoveryPublishedKey? Key) CheckJwtAuthToken(
IDiscoveryKeyStrategy keyStrategy,
string token
)
Public Shared Function CheckJwtAuthToken (
keyStrategy As IDiscoveryKeyStrategy,
token As String
) As (SecurityToken As JwtSecurityToken, Key As DiscoveryPublishedKey)
public:
static ValueTuple<JwtSecurityToken^, DiscoveryPublishedKey^> CheckJwtAuthToken(
IDiscoveryKeyStrategy^ keyStrategy,
String^ token
)
static member CheckJwtAuthToken :
keyStrategy : IDiscoveryKeyStrategy *
token : string -> ValueTuple<JwtSecurityToken, DiscoveryPublishedKey>
- keyStrategy IDiscoveryKeyStrategy
Стратегия для работы с ключами discovery на сервере.
- token String
- The JWT authorization token.
ValueTupleJwtSecurityToken,
DiscoveryPublishedKey
An object containing:
-
JwtSecurityToken representing the validated JWT token, or
if the token is invalid.
-
DiscoveryPublishedKey representing the public key used for signature validation, or
if the key is not found.