public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
if (!env.IsDevelopment())
{
app.UseErrorPage();
}
app.UseHttpsRedirection();
app.UseCorrelationId();
app.UseStaticFiles();
app.UseRouting();
app.UseCors();
app.UseAuthentication();
app.UseAbpOpenIddictValidation();
if (MultiTenancyConsts.IsEnabled)
{
app.UseMultiTenancy();
}
//app.UseJwtTokenMiddleware();
app.UseAbpRequestLocalization(options =>
{
options.RequestCultureProviders.RemoveAll(x => x.GetType() == typeof(AcceptLanguageHeaderRequestCultureProvider));
options.SetDefaultCulture("en-US");
});
app.UseAuthorization();
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseConfiguredEndpoints();
app.UseUnitOfWork();
//app.UseIdentityServer();
app.UseMiddleware<RedirectClientMiddleware>();
}
hi
What are the logs of the AuthServer project?
with the tenant issue
same issue
hi
Please adjust the order of your middleware based on https://github.com/abpframework/abp/blob/dev/templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/MyProjectNameAuthServerModule.cs#L211-L233
is this correct?
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
if (!env.IsDevelopment())
{
app.UseErrorPage();
}
app.UseHttpsRedirection();
app.UseCorrelationId();
app.UseStaticFiles();
app.UseRouting();
app.UseCors();
app.UseAuthentication();
app.UseAbpOpenIddictValidation();
if (MultiTenancyConsts.IsEnabled)
{
app.UseMultiTenancy();
}
//app.UseJwtTokenMiddleware();
app.UseAbpRequestLocalization(options =>
{
options.RequestCultureProviders.RemoveAll(x => x.GetType() == typeof(AcceptLanguageHeaderRequestCultureProvider));
options.SetDefaultCulture("en-US");
});
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseConfiguredEndpoints();
app.UseUnitOfWork();
//app.UseIdentityServer();
app.UseAuthorization();
app.UseMiddleware<RedirectClientMiddleware>();
}
yes, the account is related to a tenant.
Hi,
We are trying to add country menu to general setting, we already override GeneralSettings (Default.cshtml) but it doesnt work at all and it don't even toggle at all or open separately. Should we add our own scripts to work?
Steps: Creating new component and invoke it in our own generalSettings.
Another question for mobile view do we need to override mobileGeneralSettings too?
kindly check.
Hi,
We have two questions please, 1.Is there any configuration for lepton theme to use side menu not top menu cause latest version is using top? 2.what is the best way to add some meta tags in application without customizing theme in both lepton and leptonx?