Base solution for your next web application
Open Closed

Add tenancy name after authentication of the user #2934


User avatar
0
vish created

Hi,

Can we add tenancy name to the browser URL after authentication?

When user enters credentials(email address and password) on login page(app.{domain_name}.com) and after authentication the browser URL should changed to {tenancy_name}.app{domain_name}.com/app/dashboard .

We didn't use tenancy name field on login page neither we use tenancy name in sub-domain URL(login page).

We have got tenancy name using credentials(email address and password) and using this tenancy name we call GetLoginResultAsync() method.

var loginResult = await GetLoginResultAsync(loginModel.UsernameOrEmailAddress, loginModel.Password, TenantDetails.TenancyName);

After successful authentication, user must redirect to {tenancy_name}.app{domain_name}.com/app/dashboard .


4 Answer(s)
  • User Avatar
    0
    vish created

    Please reply as soon as possible..

    Can we implement such functionality in asp net zero?

  • User Avatar
    0
    kevinvh created

    Did you have any luck with this?

  • User Avatar
    0
    kevinvh created

    Hi there, did you have any luck with this?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Duplicate of Duplicate of <a class="postlink-local" href="https://forum.aspnetboilerplate.com/viewtopic.php?f=6&t=6966&p=16153#p16153">viewtopic.php?f=6&t=6966&p=16153#p16153</a>