public Task<Stream> LoggedOut(LoggedOutViewModel model, SignOutMessage message)
		{
			return Task.FromResult(RunTemplate("loggedout", model, message?.ClientId));
		}
Ejemplo n.º 2
0
		public async Task<Stream> LoggedOut (LoggedOutViewModel model, SignOutMessage message)
		{
			return await Render (model, "LoggedOut");
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Loads the HTML for the logged out page informing the user that they have successfully logged out.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <param name="message">The message.</param>
 /// <returns>
 /// Stream for the HTML
 /// </returns>
 public virtual Task<Stream> LoggedOut(LoggedOutViewModel model, SignOutMessage message)
 {
     return Render(model, LoggedOutView);
 }
        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,
                AutoRedirect = options.AuthenticationOptions.EnablePostSignOutAutoRedirect,
                AutoRedirectDelay = options.AuthenticationOptions.PostSignOutAutoRedirectDelay
            };
            return new LoggedOutActionResult(viewService, loggedOutModel, message);
        }
 /// <summary>
 /// Loads the HTML for the logged out page informing the user that they have successfully logged out.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 /// <returns>
 /// The <see cref="ActionResult"/>.
 /// </returns>
 public ActionResult LoggedOut(LoggedOutViewModel model)
 {
     return this.View(model);
 }
Ejemplo n.º 6
0
 public Task<Stream> LoggedOut(LoggedOutViewModel model, SignOutMessage message)
 {
     return Render(model, "loggedOut");
 }
 public LoggedOutActionResult(IViewService viewSvc, LoggedOutViewModel model, SignOutMessage message)
     : base(async () => await viewSvc.LoggedOut(model, message))
 {
     if (viewSvc == null) throw new ArgumentNullException("viewSvc");
     if (model == null) throw new ArgumentNullException("model");
 }