Beispiel #1
0
        public async Task <ActionResult> LogoutIdp(IFormCollection collection)
        {
            string samlResponse = "";


            LogoutResponse resp = new LogoutResponse();

            try
            {
                samlResponse = Encoding.UTF8.GetString(Convert.FromBase64String(collection["SAMLResponse"]));

                resp.Deserialize(samlResponse);
            }
            catch (Exception ex)
            {
                //TODO LOG
            }

            //if (resp.RequestStatus == AuthResponse.SamlRequestStatus.Success)
            //{
            //   //OK
            //};



            return(Redirect("/"));
        }
Beispiel #2
0
        public ActionResult LogoutIdp(IFormCollection collection)
        {
            string samlResponse = "";


            LogoutResponse resp = new LogoutResponse();

            try
            {
                samlResponse = Encoding.UTF8.GetString(Convert.FromBase64String(collection["SAMLResponse"]));

                resp.Deserialize(samlResponse);
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Error reading SAML Response {0}", samlResponse);
            }

            return(Redirect("/"));
        }