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.

Definition

Пространство имён: Tessa.Tokens
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public static (JwtSecurityToken SecurityToken, DiscoveryPublishedKey? Key) CheckJwtAuthToken(
	IDiscoveryKeyStrategy keyStrategy,
	string token
)

Параметры

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.

См. также