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.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
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.