SamlControllerAssertionConsumerService - метод

Method is used after SAML authorization has successfully passed. Returns login result, usually its redirect to a page.

Definition

Пространство имён: Tessa.Web.Client.Controllers
Сборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
C#
[HttpPostAttribute("AssertionConsumerService")]
public Task<IActionResult> AssertionConsumerService(
	CancellationToken cancellationToken = default
)

Параметры

cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskIActionResult
Login result, usually its redirect to a page.

Исключения

InvalidOperationException One of the following errors occured (exception text contains exact reason):
  1. Can't find LoginClaim or EmailClaim in response to SAML authorization.
  2. User is not authorized via SAML, regardless of calling this method, i.e. ClaimsPrincipal.Identity.IsAuthenticated property is false.
  3. Can't find user in the system by LoginClaim, if auto creation of users isn't enabled in configuration.
  4. Can't create new user in the system by LoginClaim, if auto creation of users is enabled in configuration.

См. также