Activities of "jhulbertpmn"

perfect!

  • ABP Framework version: v8.0.4
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

When an unauthenticated user navigates to my application, I would like to immediately direct them to the login page, as the full application requires a user to be authenticated (no functionality for a user not logged in). I was able to get part way there by adding [Authorize] to the ComponentBase for my Blazor application - it does direct the user to the login page if they aren't authenticated - but first it briefly displays the main page with the empty menu on the left and the login button on the right, then redirects to the login page, which isn't ideal. Is it possible to immediately direct the user to the login page without displaying the main layout first?

  • ABP Framework version: v8.0.4
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

I'd like to create a service similar to CurrentUser, which is registered for each login and contains a few details throughout the user session (but would like it to be separate from CurrentUser). For instance, something like ICurrentCompany, with a CompanyId. I was looking at occurrences of ICurrentUser throughout the framework source and may be missing something obvious - but I am not finding where it actually gets registered (I just see it accessed many times).

Showing 1 to 3 of 3 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11