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.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
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.