private async Task <IHttpActionResult> RenderLoggedOutPage(string id) { Logger.Info("rendering logged out page"); var baseUrl = context.GetIdentityServerBaseUrl(); var iframeUrls = options.RenderProtocolUrls(baseUrl); var message = signOutMessageCookie.Read(id); var redirectUrl = message != null ? message.ReturnUrl : null; var clientName = await clientStore.GetClientName(message); var loggedOutModel = new LoggedOutViewModel { SiteName = options.SiteName, SiteUrl = baseUrl, IFrameUrls = iframeUrls, ClientName = clientName, RedirectUrl = redirectUrl }; return(new LoggedOutActionResult(viewService, loggedOutModel)); }
private async Task <IHttpActionResult> RenderLoggedOutPage(string id) { Logger.Info("rendering logged out page"); var baseUrl = _context.GetIdentityServerBaseUrl(); var iframeUrls = _options.RenderProtocolUrls(baseUrl, _sessionCookie.GetSessionId()); var message = _signOutMessageCookie.Read(id); var redirectUrl = message?.ReturnUrl; var clientName = await _clientStore.GetClientName(message); var loggedOutModel = new LoggedOutViewModel { SiteName = _options.SiteName, SiteUrl = baseUrl, IFrameUrls = iframeUrls, ClientName = clientName, RedirectUrl = redirectUrl, AutoRedirect = _options.AuthenticationOptions.EnablePostSignOutAutoRedirect, AutoRedirectDelay = _options.AuthenticationOptions.PostSignOutAutoRedirectDelay }; return(new LoggedOutActionResult(_viewService, loggedOutModel, message)); }