Exemplo n.º 1
0
        public async Task <IActionResult> InitiateSingleLogout(string returnUrl = null)
        {
            // Request logout at the identity provider.
            await _samlServiceProvider.InitiateSloAsync(relayState : returnUrl);

            return(new EmptyResult());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> InitiatedSingleLogout(string returnUrl = "/Logout")
        {
            var partnerName = _configuration["PartnerName"];

            // send logout request to Idp's SLO service
            await _samlServiceProvider.InitiateSloAsync(relayState : returnUrl);

            return(new EmptyResult());
        }