ApiAccessTokenProviderCreateTokenAsync - метод

Creates the object with information about token and stores it.

Definition

Пространство имён: Tessa.Tokens.Api
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public Task<ITokenInfo> CreateTokenAsync(
	TokenScope scope,
	string description,
	DateTime? expires,
	Guid? userID,
	TokenOptions? options,
	CancellationToken cancellationToken = default
)

Параметры

scope  TokenScope
The token scope.
description  String
A description of the token.
expires  NullableDateTime
The expiration date and time of the token.
userID  NullableGuid
The identifier of the user for whom the token was created.
options  TokenOptions
Additional information by the token.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskITokenInfo
An object containing information about token.

Реализации

IApiAccessTokenProviderCreateTokenAsync(TokenScope, String, NullableDateTime, NullableGuid, TokenOptions, CancellationToken)

См. также