Base solution for your next web application
Open Closed

Public Website/API #9203


User avatar
0
ESTeam created

Hello,

What is the best practice to implement 4 public data record pages without having to have a dummy user on the angular?

Best regards, André Silva


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ESTeam,

    Just don't use AbpAuthorize attribute on your app services. Then, those app services can be called publicly.

  • User Avatar
    0
    ESTeam created

    In angular page, I need to have any special configuration? I put a page without any app service in the main module and it redirect to login. In this case, I do have to create a new module, similar to the account?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ESTeam,

    If you want to place this page into main module, you need to modify https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/shared/common/auth/auth-route-guard.ts to allow access to this page for publich users.