SessionsLegacy3XControllerPostOpen - метод

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("text/plain", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<string>> PostOpen(
	[FromBodyAttribute] OpenSessionLegacy3XRequest request,
	CancellationToken cancellationToken = default
)

Параметры

request  OpenSessionLegacy3XRequest
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.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskActionResultString
Session token in XML form.

См. также