title: IdentityServer4 logout
body: <p>I am having an issue where I cannot seem to get my Identity Server logout to show the confirmation first.  I downloaded the source code for IdentityServer4 from github and found the parameter in the Models folder:  LogoutRequest.cs, ShowSignOutPrompt.  There are no references to it in IdentityServer except to check it during the logout.</p>
  
  <p>In debugging, I see that it is false.  I don't know where this is supposed to get set, I've checked the options for the client config on both the server and client side, as well as the options on server startup.</p>
  
  <p>I can find no instances of "ShowSignoutPrompt" in the client code (I'm using the IdentityServer3 Owin Hybrid client sample currently).</p>
  
  <p>Here's the code flow:
  We have a button in our default layout which triggers the client's AccountController.Signout():</p>
  
  <pre><code>public void Signout()
  {
      Request.GetOwinContext().Authentication.SignOut();
  }
  </code></pre>
  
  <p>From there, I'm not exactly sure how, but the next point it hits is IdentityServer's AccountController.Logout(string logoutId).  That method builds the logout prompt view (using checks in AccountServices.BuildLogoutViewModelAsync) and returns it to the user's browser.  The only way it works properly to not set the ShowSignoutPrompt to false is if PostLogoutRedirectUri is set to "/signout-callback-oidc".  I don't know why.</p>
  
  <p>When the user clicks "yes" on the view generated above, it goes to IdSrvr's AccountController.Logout(LogoutInputModel model). I am trying to change the last line of that method from:</p>
  
  <pre><code>return View("LoggedOut", vm);
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>return Redirect(vm.PostLogoutRedirectUri);
  </code></pre>
  
  <p>There's another problem here in that the PostRedirectUri is null here, even though I set it on the client config (well, for that matter, Identity Server's client config also has it).</p>