SamlControllerAssertionConsumerService - метод
Method is used after SAML authorization has successfully passed.
Returns login result, usually its redirect to a page.
Пространство имён: Tessa.Web.Client.ControllersСборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
[HttpPostAttribute("AssertionConsumerService")]
public Task<IActionResult> AssertionConsumerService(
CancellationToken cancellationToken = default
)
<HttpPostAttribute("AssertionConsumerService")>
Public Function AssertionConsumerService (
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"AssertionConsumerService")]
Task<IActionResult^>^ AssertionConsumerService(
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("AssertionConsumerService")>]
member AssertionConsumerService :
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResultLogin result, usually its redirect to a page.
InvalidOperationException |
One of the following errors occured (exception text contains exact reason):
- Can't find LoginClaim or EmailClaim in response to SAML authorization.
- User is not authorized via SAML, regardless of calling this method, i.e. ClaimsPrincipal.Identity.IsAuthenticated property is false.
- Can't find user in the system by LoginClaim, if auto creation of users isn't enabled in configuration.
- Can't create new user in the system by LoginClaim, if auto creation of users is enabled in configuration.
|