Open Closed

Showing Blank Page After Logout #7547


User avatar
0
jayesh@extranerds.com created
  • ABP Framework version: v8.0.1
  • UI Type: Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server,)
  • Tiered (for MVC): Yes
  • Exception message and full stack trace: no exception, redirection from logout to the login is taking time for the deployed site on the Azure platform. While debugging locally, it is working well.
  • Steps to reproduce the issue:
  1. Login in - https://blzortest.azurewebsites.net/Account/Login
  2. Logout
  3. After the Logout, the page redirects to the URL - https://blazortest.azurewebsites.net/authentication/logout-callback
  4. Blank Page shows for 2 minutes
  5. Then automatically redirect to the login page - https://blazortest.azurewebsites.net/Account/Login?ReturnUrl=.....

Solution Applied:

  1. https://abp.io/support/questions/3071/Show-login-page-after-logout
  2. https://abp.io/support/questions/1152/How-to-to-Login-page-when-accessing-the-app-and-after-logout
  3. https://abp.io/support/questions/3352/Can-we-remove-you-are-successfully-logout-screen-and-show-login-screen
  4. https://github.com/abpframework/abp/issues/11600

5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can custom it if you want

    https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/additional-scenarios?view=aspnetcore-6.0#customize-the-authentication-user-interface

  • User Avatar
    0
    jayesh@extranerds.com created

    Hello Team,

    Thank you for replying.

    I have already tried this, however did not work for me on the deployed site.

    another code to fix, but did not work on the deployed site

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    you can try replace the component.

    @attribute [ExposeServices(typeof(Authentication))]
    @attribute [Dependency(ReplaceServices = true)]
    
  • User Avatar
    0
    jayesh@extranerds.com created

    Hi Team,

    I have applied your suggestion, however it is not working on the deployed site.

    Kindly request you to suggest something else to fix this issue.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    another code to fix, but did not work on the deployed site

    Hi, you can try override the LogoutController

    https://github.com/abpframework/abp/blob/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/LogoutController.cs#L14

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11