SessionsControllerPostOpen - метод

Open session to login user by login/password pair. Returns session token in XML form, consumer should supply it to other web requests to authenticate.

Also returns platform version in Version header. And miniature auth token in Session header, that can be used to authenticate instead of token with excess info on the session, which is being returned as method result.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("open")]
[TypedJsonBodyAttribute(ConvertPascalCasing = true)]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<OpenSessionResponse>> PostOpen(
	[FromBodyAttribute] OpenSessionRequest request,
	[FromQueryAttribute] bool cookies = false,
	[FromQueryAttribute] bool browser = false,
	[FromQueryAttribute] bool support2fa = false,
	CancellationToken cancellationToken = default
)

Параметры

request  OpenSessionRequest
Request to open the sessions including auth parameters and info on app and the client. Can be passed as typed JSON or JSON without types info.
cookies  Boolean  (Optional)
Indication that client uses cookies for authentication, i.e. it is web client or mobile app. Parameter is ignored if current application does not support web clients.
browser  Boolean  (Optional)
Specifies that client uses browser headers to provide info on client parameters, i.e. it is web client. Parameter is ignored if current application does not support web clients.
support2fa  Boolean  (Optional)
An indication that the client support two-factor authentication.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskActionResultOpenSessionResponse
Open session response with session token in XML form and 2FA result.

См. также