public ActionResult Index(DiscoveryServiceModel model)
        {
            String delimiter     = [email protected]("?") ? "&" : "?";
            var    redirectToURL = $"{ model.@return }{ delimiter }{ model.returnIDParam }={ model.SelectedIdp }";

            return(Redirect(redirectToURL));
        }
예제 #2
0
        public ActionResult Index(DiscoveryServiceModel model)
        {
            string delimiter = [email protected]("?") ? "&" : "?";

            return(this.Redirect(string.Format(
                                     "{0}{1}{2}={3}",
                                     model.@return,
                                     delimiter,
                                     model.returnIDParam,
                                     model.SelectedIdp)));
        }
예제 #3
0
        public ActionResult Index(DiscoveryServiceModel model)
        {
            if (model.isPassive || Request.HttpMethod == "POST")
            {
                string delimiter = [email protected]("?") ? "&" : "?";

                return(Redirect(string.Format(
                                    "{0}{1}{2}={3}",
                                    model.@return,
                                    delimiter,
                                    model.returnIDParam,
                                    model.SelectedIdp)));
            }

            return(View(model));
        }