这个问题是关于如何在 ABP.IO 的 Blazor WebAssembly 应用程序中实现租户特定的登录。这可以通过一些步骤实现:
[DependsOn(
typeof(AbpAccountApplicationModule),
typeof(YourProjectEntityFrameworkCoreModule),
typeof(AbpAccountHttpApiModule)
)]
public class YourProjectAccountApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure(options =>
{
options.LoginPageRoute = "/Account/Login";
});
}
}
@if (!context.User.Identity.IsAuthenticated)
{
}
else
{
}
Not Found
Sorry, there's nothing at this address.
@inject IdentityState Identity
@if (Identity.IsAuthenticated)
{
You are logged in as @Identity.UserName
}
else
{
}
通过这些步骤,租户特定的登录可以在 ABP.IO 的 Blazor