private async Task<IHttpActionResult> RenderLogoutPromptPage(string id = null)
        {
            var clientName = await clientStore.GetClientName(signOutMessageCookie.Read(id));

            var logoutModel = new LogoutViewModel
            {
                SiteName = options.SiteName,
                SiteUrl = context.GetIdentityServerBaseUrl(),
                CurrentUser = User.Identity.Name,
                LogoutUrl = Url.Route(Constants.RouteNames.Logout, new { id = id }),
                AntiForgery = antiForgeryToken.GetAntiForgeryToken(),
                ClientName = clientName
            };
            return new LogoutActionResult(viewService, logoutModel);
        }
        private async Task<IHttpActionResult> RenderLogoutPromptPage(string id = null)
        {
            var clientName = await GetClientNameFromSignOutMessageId(id);

            var env = Request.GetOwinEnvironment();
            var logoutModel = new LogoutViewModel
            {
                SiteName = _options.SiteName,
                SiteUrl = env.GetIdentityServerBaseUrl(),
                CurrentUser = await GetNameFromPrimaryAuthenticationType(),
                LogoutUrl = Url.Route(Constants.RouteNames.Logout, new { id = id }),
                AntiForgery = AntiForgeryTokenValidator.GetAntiForgeryHiddenInput(Request.GetOwinEnvironment()),
                ClientName = clientName
            };
            return new LogoutActionResult(_viewService, logoutModel);
        }
 /// <summary>
 /// Loads the HTML for the logout prompt page.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>
 /// Stream for the HTML
 /// </returns>
 public virtual Task<Stream> Logout(LogoutViewModel model)
 {
     return Render(model, "logout");
 }
 public LogoutActionResult(IViewService viewSvc, LogoutViewModel model)
     : base(async () => await viewSvc.Logout(model))
 {
     if (viewSvc == null) throw new ArgumentNullException("viewSvc");
     if (model == null) throw new ArgumentNullException("model");
 }
        private IHttpActionResult RenderLogoutPromptPage()
        {
            var logoutModel = new LogoutViewModel
            {
                SiteName = options.SiteName,
                SiteUrl = context.GetIdentityServerBaseUrl(),
                CurrentUser = context.GetCurrentUserDisplayName(),
                LogoutUrl = context.GetIdentityServerLogoutUrl(),
                AntiForgery = antiForgeryToken.GetAntiForgeryToken(),
            };

            return new LogoutActionResult(viewService, logoutModel);
        }