Open Closed

Disabled/Redirect /Account/Manage to Auth Server project homepage #5628


User avatar
0
e.ruiz1 created

Hello,

We are using single sign-on (SSO ADFS) in our application. Therefore, we don't need a page where user can manage their account. We would like to disable the page /Account/Manage or redirect back to the root of the auth server project in our tiered deployment. What would be the best practice for this?

  • ABP Framework version: v7.3.3
  • UI Type: MVC
  • Database System: EF Core (SQL Server, )
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can write a middleware to intercept the request and redirect to the Index page

    For example:

    app.Use(async (context, next) =>
    {
        if(context.Request.Path.ToString().Contains("account/manage", StringComparison.InvariantCultureIgnoreCase))
        {
            context.Response.Redirect(".....");
            return;
        }
       
        await next.Invoke();
    });
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.