I’m heading in the same direction as well. Thank you for your response.
We didn’t see the part where “Payment module will support getting the current tenant URL.” Our tenant domains can vary, for example: https://{0}.mydomain.com https://snapshop-a.mydomain.com or https://www.snapshop-b.com
All of the above belong to the same SaaS application system. We need to dynamically generate the corresponding domain URLs. Could you please show us how to achieve this?
We are currently using PAYUNi as our payment provider (https://www.payuni.com.tw/). Will using different payment providers have any impact?
In this case, you would typically need to capture the user's domain dynamically at runtime and set the RootUrl accordingly. Depending on how your application is structured, you might consider using the Request object to determine the domain of the current request and configure the RootUrl based on that.
For example:
.Configure<PaymentWebOptions>(options =>
{
    var currentDomain = HttpContext.Request.Host.Value; // Get the current domain dynamically
    options.RootUrl = $"https://{currentDomain}";
    options.CallbackUrl = $"https://{currentDomain}/Payment/Success";
    options.GatewaySelectionCheckoutButtonStyle = configuration["Payment:GatewaySelectionCheckoutButtonStyle"];
});
This approach grabs the domain from the current HTTP request, allowing each user to have their own dynamically configured RootUrl.
Okay, thank you for your help.
In my scenario, two-factor authentication (2FA) is turned off in the MVC host application, but the settings menu continues to show up in the Angular frontend.
Even though I've disabled 2FA at the host/tenant level, the option still shows up in the menu.
Related docs: ABP - Two-Factor Authentication (User Side) https://abp.io/docs/latest/modules/identity/two-factor-authentication#user-side
Thanks.
Clients have reported that the SessionStateService frequently fails to retrieve the correct tenant information in new web environments or incognito mode. Our tests confirm this issue. Has there been any solution to this problem yet?
[maliming] said: hi
You can use same authserver and api domain for different domains angular apps.
The current error is from angular.
Can you make your angular home component doesn’t require authorization?
Which means I have to click login button in angular website then redirect to authserver.
Thanks.
How can I configure it so that the tenant app does not display the tenant switching feature when redirecting to the authserver?
import { AuthService } from '@abp/ng.core';
import { Component, inject } from '@angular/core';
import { Router } from '@angular/router';
@Component({
  standalone: false,
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss'],
})
export class HomeComponent {
  private router = inject(Router);
  get hasLoggedIn(): boolean {
    return this.authService.isAuthenticated;
  }
  constructor(private authService: AuthService) {
    // if (this.hasLoggedIn) {
    //   this.goDashboard();
    // }
    // else {
    //   this.login();
    // }
  }
  login() {
    this.authService.navigateToLogin();
  }
  goDashboard() {
    this.router.navigate([`/dashboard`]);
  }
}
Why can't we do it this way?
 
                                