Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Anonymous page in angular per-tenant? #1044


User avatar
0
enigmae created

Hello,

Do you have an example of creating a landing page per-tenent that would not require login? I understand this would require sub-domain tenent identification which i use.

Is it as easy as making a route, and not requiring any permissions or any authentication?

Thanks,

Lucas


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

    Hi,

    Actually, there is a similar page: Frontend page. This page can be customized by checking current tenant. If you use subdomain, it will be easy.

    If you don't use subdomain, then you can add some route like:

    "Landing/{TenancyName}"

    You can then get TenancyName and customize the page.

  • User Avatar
    0
    andmattia created

    I try to make a similar oparation (without tenant) but I catch "the not logged in expection [CurrentUserDidNotLoginToTheApplication]" in angular becuse at startup the app call appModule.factory('appSession' ...

    abp.services.app.session.getCurrentLoginInformations // get error

    How can I prevent this error?

    The Idea is to use same anugular app, if is it possibile, for anonymous and logged user mat

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    So, remove the code using appSession. Because, you don't need it when no user logged in. We designed the angular app for logged in users. So, you may have additional problems after solve this one. We try to help you if you write your problems. Alternatively, you may try to create a second angular app for anonymous users (if this is suitable for your case).